home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Today - The Disc! 5 / CD-ROM Today - The Disc (Issue 5)(November 1994).ISO / mac / DHA demo / Don Norman Folder / The Library < prev    next >
MacBinary  |  1994-09-21  |  522.0 KB  |  [STAK/WILD]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert HyperCard Stack (archive/hypercard) idMeta Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, busy, Tue Aug 24 18:56:22 1993, modified Wed Sep 21 09:20:19 1994, creator HyperCard, type HyperCard stack, 40960 bytes "The Library" DIY-Thermocam raw data (Lepton 3.x), scale 0-2528, spot sensor temperature 3157.142090, unit celsius, color scheme 0, calibration: offset 0.000000, slope 67720618589570893611008.000000, at 0xa080 493384 bytes resource DIY-Thermocam raw data (Lepton 3.x), scale 0-2528, spot sensor temperature 3157.142090, unit celsius, color scheme 0, calibration: offset 0.000000, slope 67720618589570893611008.000000 default (weak)
99% file data default
74% TrID Mac HyperCard stack (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[STAK]
macFileCreator[WILD]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 54 68 65 20 4c 69 | 62 72 61 72 79 00 00 00 |..The Li|brary...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 53 54 41 4b 57 49 4c | 44 05 00 00 00 00 00 00 |.STAKWIL|D.......|
|00000050| 00 00 00 00 00 a0 00 00 | 07 87 48 a8 a0 4d 16 aa |........|..H..M..|
|00000060| a5 e3 93 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 a1 d9 00 00 |........|........|
|00000080| 00 00 70 00 53 54 41 4b | ff ff ff ff 00 00 00 00 |..p.STAK|........|
|00000090| 00 00 00 0a 00 00 a0 00 | 00 00 70 00 00 00 00 00 |........|..p.....|
|000000a0| 00 00 00 00 00 00 00 01 | 00 00 15 e8 00 00 00 01 |........|........|
|000000b0| 00 00 14 59 00 00 09 db | 00 00 00 02 00 00 13 00 |...Y....|........|
|000000c0| 00 00 0f 5f 00 00 00 00 | 00 05 00 00 18 00 00 00 |..._....|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 02 10 80 00 02 20 80 00 | 02 10 80 00 02 10 80 00 |..... ..|........|
|000000f0| d5 a6 41 f2 00 00 00 00 | 00 28 00 00 01 b8 02 80 |..A.....|.(......|
|00000100| 00 00 00 00 01 e0 02 80 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 0d ff 00 00 0c 76 | 01 90 02 80 00 00 00 00 |.......v|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 80 00 00 00 08 00 00 00 |........|........|
|00000350| 88 00 22 00 88 00 22 00 | 88 88 22 22 88 88 22 22 |.."...".|..""..""|
|00000360| 88 aa 22 aa 88 aa 22 aa | cc aa 33 aa cc aa 33 aa |.."...".|..3...3.|
|00000370| ee aa bb aa ee aa bb aa | ee bb bb ee ee bb bb ee |........|........|
|00000380| ff bb ff ee ff bb ff ee | ff bb ff ff ff bb ff ff |........|........|
|00000390| 80 10 02 20 01 08 40 04 | ff ff ff ff ff ff ff ff |... ..@.|........|
|000003a0| 88 22 88 22 88 22 88 22 | 11 22 44 88 11 22 44 88 |."."."."|."D.."D.|
|000003b0| c4 80 0c 68 43 02 30 26 | b1 30 03 1b d8 c0 0c 8d |...hC.0&|.0......|
|000003c0| aa 00 aa 00 aa 00 aa 00 | 88 22 55 22 88 22 55 22 |........|."U"."U"|
|000003d0| 88 55 22 55 88 55 22 55 | 77 dd 77 dd 77 dd 77 dd |.U"U.U"U|w.w.w.w.|
|000003e0| 80 00 00 00 00 00 00 00 | aa 55 aa 55 aa 55 aa 55 |........|.U.U.U.U|
|000003f0| 03 84 48 30 0c 02 01 01 | 82 44 39 44 82 01 01 01 |..H0....|.D9D....|
|00000400| 88 14 22 41 88 41 22 14 | 80 80 41 3e 08 08 14 e3 |.."A.A".|..A>....|
|00000410| 22 04 8c 74 22 17 98 10 | be 80 88 08 eb 08 88 80 |"..t"...|........|
|00000420| 25 c8 32 89 64 24 4c 92 | a2 9c 41 be 2a c9 14 eb |%.2.d$L.|..A.*...|
|00000430| 40 a0 00 00 04 0a 00 00 | 80 40 20 00 02 04 08 00 |@.......|.@ .....|
|00000440| aa 00 80 00 88 00 80 00 | ff 80 80 80 80 80 80 80 |........|........|
|00000450| 08 1c 22 c1 80 01 02 04 | ff 80 80 80 ff 08 08 08 |..".....|........|
|00000460| f8 74 22 47 8f 17 22 71 | bf 00 bf bf b0 b0 b0 b0 |.t"G.."q|........|
|00000470| ff 7f be 5d a2 41 80 00 | fa f5 fa f5 a0 50 a0 50 |...].A..|.....P.P|
|00000480| 00 00 7a 80 00 00 09 20 | 00 00 96 00 00 00 09 e0 |..z.... |........|
|00000490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 66 75 6e 63 74 69 6f 6e | 20 47 65 74 44 6c 67 49 |function| GetDlgI|
|00000690| 44 20 6e 0d 67 6c 6f 62 | 61 6c 20 67 43 75 72 4c |D n.glob|al gCurL|
|000006a0| 61 6e 67 0d 69 66 20 67 | 43 75 72 4c 61 6e 67 20 |ang.if g|CurLang |
|000006b0| 69 73 20 61 20 6e 75 6d | 62 65 72 20 74 68 65 6e |is a num|ber then|
|000006c0| 20 72 65 74 75 72 6e 20 | 6e 2b 67 43 75 72 4c 61 | return |n+gCurLa|
|000006d0| 6e 67 0d 65 6c 73 65 20 | 72 65 74 75 72 6e 20 6e |ng.else |return n|
|000006e0| 2b 31 0d 65 6e 64 20 47 | 65 74 44 6c 67 49 44 0d |+1.end G|etDlgID.|
|000006f0| 66 75 6e 63 74 69 6f 6e | 20 63 74 6c 77 6e 61 6d |function| ctlwnam|
|00000700| 65 20 73 0d 67 6c 6f 62 | 61 6c 20 67 43 75 72 4c |e s.glob|al gCurL|
|00000710| 61 6e 67 0d 72 65 74 75 | 72 6e 20 28 22 63 6f 6e |ang.retu|rn ("con|
|00000720| 74 72 6f 6c 73 22 26 73 | 26 22 4c 22 26 67 43 75 |trols"&s|&"L"&gCu|
|00000730| 72 4c 61 6e 67 29 0d 65 | 6e 64 20 63 74 6c 77 6e |rLang).e|nd ctlwn|
|00000740| 61 6d 65 0d 66 75 6e 63 | 74 69 6f 6e 20 48 43 4d |ame.func|tion HCM|
|00000750| 49 20 6e 0d 67 6c 6f 62 | 61 6c 20 67 48 43 4c 61 |I n.glob|al gHCLa|
|00000760| 6e 67 0d 72 65 74 75 72 | 6e 20 67 65 74 49 6e 64 |ng.retur|n getInd|
|00000770| 53 74 72 28 28 22 48 43 | 4d 65 6e 75 73 a5 22 26 |Str(("HC|Menus."&|
|00000780| 67 48 43 4c 61 6e 67 29 | 2c 6e 29 0d 65 6e 64 20 |gHCLang)|,n).end |
|00000790| 48 43 4d 49 0d 66 75 6e | 63 74 69 6f 6e 20 74 53 |HCMI.fun|ction tS|
|000007a0| 74 72 20 69 64 2c 6e 0d | 67 6c 6f 62 61 6c 20 67 |tr id,n.|global g|
|000007b0| 43 75 72 4c 61 6e 67 0d | 72 65 74 75 72 6e 20 67 |CurLang.|return g|
|000007c0| 65 74 49 6e 64 53 74 72 | 28 67 43 75 72 4c 61 6e |etIndStr|(gCurLan|
|000007d0| 67 26 69 64 2c 6e 29 0d | 65 6e 64 20 74 53 74 72 |g&id,n).|end tStr|
|000007e0| 0d 66 75 6e 63 74 69 6f | 6e 20 63 68 65 63 6b 65 |.functio|n checke|
|000007f0| 64 20 77 0d 72 65 74 75 | 72 6e 20 63 68 65 63 6b |d w.retu|rn check|
|00000800| 6d 61 72 6b 20 6f 66 20 | 6d 65 6e 75 69 74 65 6d |mark of |menuitem|
|00000810| 20 77 20 6f 66 20 6d 65 | 6e 75 20 74 53 74 72 28 | w of me|nu tStr(|
|00000820| 22 4c 69 62 4d 73 67 22 | 2c 34 30 29 0d 65 6e 64 |"LibMsg"|,40).end|
|00000830| 20 63 68 65 63 6b 65 64 | 0d 6f 6e 20 41 64 64 54 | checked|.on AddT|
|00000840| 6f 52 54 20 77 0d 67 6c | 6f 62 61 6c 20 52 54 4d |oRT w.gl|obal RTM|
|00000850| 65 6e 75 2c 52 54 49 44 | 73 2c 67 4f 72 69 67 43 |enu,RTID|s,gOrigC|
|00000860| 61 72 64 49 44 0d 69 66 | 20 67 4f 72 69 67 43 61 |ardID.if| gOrigCa|
|00000870| 72 64 49 44 ad 73 68 6f | 72 74 20 69 64 20 6f 66 |rdID.sho|rt id of|
|00000880| 20 74 68 69 73 20 63 64 | 20 61 6e 64 20 67 4f 72 | this cd| and gOr|
|00000890| 69 67 43 61 72 64 49 44 | ad 22 22 20 74 68 65 6e |igCardID|."" then|
|000008a0| 20 65 78 69 74 20 41 64 | 64 54 6f 52 54 0d 70 75 | exit Ad|dToRT.pu|
|000008b0| 74 20 6e 75 6d 4c 6e 73 | 28 52 54 4d 65 6e 75 29 |t numLns|(RTMenu)|
|000008c0| 20 69 6e 74 6f 20 6e 6c | 0d 69 66 20 6e 6c 3e 31 | into nl|.if nl>1|
|000008d0| 35 20 74 68 65 6e 0d 64 | 65 6c 65 74 65 20 6c 69 |5 then.d|elete li|
|000008e0| 6e 65 20 6e 6c 20 6f 66 | 20 52 54 4d 65 6e 75 0d |ne nl of| RTMenu.|
|000008f0| 64 65 6c 65 74 65 20 6c | 69 6e 65 20 6e 6c 20 6f |delete l|ine nl o|
|00000900| 66 20 52 54 49 44 73 0d | 65 6e 64 20 69 66 0d 70 |f RTIDs.|end if.p|
|00000910| 75 74 20 6c 69 6e 65 20 | 31 20 6f 66 20 77 20 69 |ut line |1 of w i|
|00000920| 6e 74 6f 20 77 0d 70 75 | 74 20 73 73 6e 28 29 20 |nto w.pu|t ssn() |
|00000930| 69 6e 74 6f 20 6e 0d 69 | 66 20 77 ad 22 22 20 74 |into n.i|f w."" t|
|00000940| 68 65 6e 20 67 65 74 20 | 6e 26 22 3a 20 22 26 77 |hen get |n&": "&w|
|00000950| 0d 65 6c 73 65 20 67 65 | 74 20 6e 0d 70 75 74 20 |.else ge|t n.put |
|00000960| 69 74 26 72 65 74 75 72 | 6e 20 62 65 66 6f 72 65 |it&retur|n before|
|00000970| 20 52 54 4d 65 6e 75 0d | 70 75 74 20 73 68 6f 72 | RTMenu.|put shor|
|00000980| 74 20 69 64 20 6f 66 20 | 74 68 69 73 20 63 64 26 |t id of |this cd&|
|00000990| 22 fe 22 26 6e 26 72 65 | 74 75 72 6e 20 62 65 66 |"."&n&re|turn bef|
|000009a0| 6f 72 65 20 52 54 49 44 | 73 0d 67 65 74 20 6c 69 |ore RTID|s.get li|
|000009b0| 6e 65 20 31 20 6f 66 20 | 52 54 4d 65 6e 75 0d 72 |ne 1 of |RTMenu.r|
|000009c0| 65 70 65 61 74 20 77 69 | 74 68 20 78 3d 32 20 74 |epeat wi|th x=2 t|
|000009d0| 6f 20 6e 6c 2b 31 0d 69 | 66 20 6c 69 6e 65 20 78 |o nl+1.i|f line x|
|000009e0| 20 6f 66 20 52 54 4d 65 | 6e 75 3d 69 74 20 74 68 | of RTMe|nu=it th|
|000009f0| 65 6e 0d 64 65 6c 65 74 | 65 20 6c 69 6e 65 20 78 |en.delet|e line x|
|00000a00| 20 6f 66 20 52 54 4d 65 | 6e 75 0d 64 65 6c 65 74 | of RTMe|nu.delet|
|00000a10| 65 20 6c 69 6e 65 20 78 | 20 6f 66 20 52 54 49 44 |e line x| of RTID|
|00000a20| 73 0d 65 78 69 74 20 72 | 65 70 65 61 74 0d 65 6e |s.exit r|epeat.en|
|00000a30| 64 20 69 66 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |d if.end| repeat.|
|00000a40| 65 6e 64 20 41 64 64 54 | 6f 52 54 0d 66 75 6e 63 |end AddT|oRT.func|
|00000a50| 74 69 6f 6e 20 73 62 6e | 0d 72 65 74 75 72 6e 20 |tion sbn|.return |
|00000a60| 73 68 6f 72 74 20 6e 61 | 6d 65 20 6f 66 20 74 68 |short na|me of th|
|00000a70| 69 73 20 62 67 0d 65 6e | 64 20 73 62 6e 0d 66 75 |is bg.en|d sbn.fu|
|00000a80| 6e 63 74 69 6f 6e 20 43 | 44 73 0d 72 65 74 75 72 |nction C|Ds.retur|
|00000a90| 6e 20 73 62 6e 28 29 3d | 22 64 65 74 61 69 6c 73 |n sbn()=|"details|
|00000aa0| 22 0d 65 6e 64 20 43 44 | 73 0d 6f 6e 20 63 6c 6f |".end CD|s.on clo|
|00000ab0| 73 65 63 61 72 64 0d 67 | 6c 6f 62 61 6c 20 6f 6c |secard.g|lobal ol|
|00000ac0| 64 74 69 63 6b 73 0d 70 | 75 74 20 74 69 63 6b 73 |dticks.p|ut ticks|
|00000ad0| 28 29 20 69 6e 74 6f 20 | 6f 6c 64 74 69 63 6b 73 |() into |oldticks|
|00000ae0| 0d 63 63 73 0d 4c 52 20 | 74 72 75 65 0d 4c 53 0d |.ccs.LR |true.LS.|
|00000af0| 65 6e 64 20 63 6c 6f 73 | 65 63 61 72 64 0d 6f 6e |end clos|ecard.on|
|00000b00| 20 63 63 73 0d 67 6c 6f | 62 61 6c 20 67 43 75 72 | ccs.glo|bal gCur|
|00000b10| 4c 61 6e 67 0d 70 75 74 | 20 22 64 65 73 63 72 69 |Lang.put| "descri|
|00000b20| 70 74 69 6f 6e 22 20 69 | 6e 74 6f 20 64 0d 70 75 |ption" i|nto d.pu|
|00000b30| 74 20 28 64 26 67 43 75 | 72 4c 61 6e 67 29 20 69 |t (d&gCu|rLang) i|
|00000b40| 6e 74 6f 20 64 6c 0d 67 | 65 74 20 73 62 6e 28 29 |nto dl.g|et sbn()|
|00000b50| 0d 69 66 20 69 74 3d 22 | 64 65 74 61 69 6c 73 22 |.if it="|details"|
|00000b60| 20 74 68 65 6e 20 61 64 | 64 74 6f 72 74 20 74 53 | then ad|dtort tS|
|00000b70| 74 72 28 22 4c 69 62 4d | 73 67 22 2c 32 30 29 26 |tr("LibM|sg",20)&|
|00000b80| 22 20 22 26 66 6c 64 20 | 22 70 61 67 65 6e 6f 22 |" "&fld |"pageno"|
|00000b90| 0d 69 66 20 69 74 3d 22 | 74 69 74 6c 65 20 70 61 |.if it="|title pa|
|00000ba0| 67 65 22 0d 74 68 65 6e | 0d 69 66 20 74 68 65 72 |ge".then|.if ther|
|00000bb0| 65 20 69 73 20 61 20 66 | 6c 64 20 64 20 74 68 65 |e is a f|ld d the|
|00000bc0| 6e 20 61 64 64 74 6f 72 | 74 20 66 6c 64 20 64 0d |n addtor|t fld d.|
|00000bd0| 65 6c 73 65 20 69 66 20 | 74 68 65 72 65 20 69 73 |else if |there is|
|00000be0| 20 61 20 66 6c 64 20 64 | 6c 20 74 68 65 6e 20 61 | a fld d|l then a|
|00000bf0| 64 64 74 6f 72 74 20 66 | 6c 64 20 64 6c 0d 65 6e |ddtort f|ld dl.en|
|00000c00| 64 20 69 66 0d 65 6e 64 | 20 63 63 73 0d 6f 6e 20 |d if.end| ccs.on |
|00000c10| 73 69 7a 65 66 6c 64 0d | 67 6c 6f 62 61 6c 20 4c |sizefld.|global L|
|00000c20| 67 53 54 2c 67 4c 52 2c | 67 53 52 2c 67 53 50 53 |gST,gLR,|gSR,gSPS|
|00000c30| 2c 67 4c 50 53 2c 67 4c | 53 54 61 62 6c 65 2c 67 |,gLPS,gL|STable,g|
|00000c40| 53 4c 54 61 62 6c 65 0d | 69 66 20 6e 6f 74 20 69 |SLTable.|if not i|
|00000c50| 73 45 6e 61 62 6c 65 64 | 28 74 53 74 72 28 22 4c |sEnabled|(tStr("L|
|00000c60| 69 62 4d 73 67 22 2c 34 | 35 29 2c 74 53 74 72 28 |ibMsg",4|5),tStr(|
|00000c70| 22 4c 69 62 4d 73 67 22 | 2c 34 30 29 29 20 74 68 |"LibMsg"|,40)) th|
|00000c80| 65 6e 20 65 78 69 74 20 | 73 69 7a 65 66 6c 64 0d |en exit |sizefld.|
|00000c90| 67 65 74 20 72 65 63 74 | 20 6f 66 20 66 6c 64 20 |get rect| of fld |
|00000ca0| 22 73 74 79 6c 65 64 22 | 0d 70 75 74 20 6c 69 6e |"styled"|.put lin|
|00000cb0| 65 20 31 20 6f 66 20 66 | 6c 64 20 22 63 68 61 72 |e 1 of f|ld "char|
|00000cc0| 61 63 74 65 72 73 22 20 | 69 6e 74 6f 20 70 74 0d |acters" |into pt.|
|00000cd0| 70 75 74 20 67 4c 53 54 | 61 62 6c 65 3d 22 22 20 |put gLST|able="" |
|00000ce0| 6f 72 20 67 53 4c 54 61 | 62 6c 65 3d 22 22 20 69 |or gSLTa|ble="" i|
|00000cf0| 6e 74 6f 20 66 0d 69 66 | 20 70 74 3d 22 22 20 74 |nto f.if| pt="" t|
|00000d00| 68 65 6e 0d 70 75 74 20 | 74 65 78 74 73 69 7a 65 |hen.put |textsize|
|00000d10| 20 6f 66 20 63 68 61 72 | 20 31 20 6f 66 20 66 6c | of char| 1 of fl|
|00000d20| 64 20 22 73 74 79 6c 65 | 64 22 20 69 6e 74 6f 20 |d "style|d" into |
|00000d30| 6f 73 0d 69 66 20 6f 73 | 3d 31 32 20 74 68 65 6e |os.if os|=12 then|
|00000d40| 20 70 75 74 20 22 73 22 | 20 69 6e 74 6f 20 70 74 | put "s"| into pt|
|00000d50| 0d 65 6c 73 65 20 69 66 | 20 6f 73 3d 31 38 20 74 |.else if| os=18 t|
|00000d60| 68 65 6e 20 70 75 74 20 | 22 6c 22 20 69 6e 74 6f |hen put |"l" into|
|00000d70| 20 70 74 0d 70 75 74 20 | 70 74 20 69 6e 74 6f 20 | pt.put |pt into |
|00000d80| 6c 69 6e 65 20 31 20 6f | 66 20 66 6c 64 20 22 63 |line 1 o|f fld "c|
|00000d90| 68 61 72 61 63 74 65 72 | 73 22 0d 65 6e 64 20 69 |haracter|s".end i|
|00000da0| 66 0d 70 75 74 20 2d 31 | 20 69 6e 74 6f 20 68 62 |f.put -1| into hb|
|00000db0| 0d 69 66 20 4c 67 53 54 | 20 74 68 65 6e 0d 69 66 |.if LgST| then.if|
|00000dc0| 20 70 74 ad 22 6c 22 20 | 74 68 65 6e 0d 69 66 20 | pt."l" |then.if |
|00000dd0| 69 74 ad 67 4c 52 20 74 | 68 65 6e 0d 73 65 74 20 |it.gLR t|hen.set |
|00000de0| 72 65 63 74 20 6f 66 20 | 66 6c 64 20 22 73 74 79 |rect of |fld "sty|
|00000df0| 6c 65 64 22 20 74 6f 20 | 67 4c 52 0d 68 69 64 65 |led" to |gLR.hide|
|00000e00| 20 66 6c 64 20 22 6c 6f | 63 61 6c 20 6e 6f 74 65 | fld "lo|cal note|
|00000e10| 73 22 0d 65 6e 64 20 69 | 66 0d 69 66 20 66 20 74 |s".end i|f.if f t|
|00000e20| 68 65 6e 0d 70 75 74 20 | 67 4c 50 53 20 69 6e 74 |hen.put |gLPS int|
|00000e30| 6f 20 68 62 0d 65 6c 73 | 65 0d 73 65 74 20 74 65 |o hb.els|e.set te|
|00000e40| 78 74 68 65 69 67 68 74 | 20 6f 66 20 66 6c 64 20 |xtheight| of fld |
|00000e50| 22 73 74 79 6c 65 64 22 | 20 74 6f 20 69 74 65 6d |"styled"| to item|
|00000e60| 20 32 20 6f 66 20 67 4c | 50 53 0d 43 68 61 6e 67 | 2 of gL|PS.Chang|
|00000e70| 65 46 6f 6e 74 53 69 7a | 65 73 20 6e 75 6d 62 65 |eFontSiz|es numbe|
|00000e80| 72 20 6f 66 20 66 6c 64 | 20 22 73 74 79 6c 65 64 |r of fld| "styled|
|00000e90| 22 2c 66 61 6c 73 65 2c | 67 53 4c 54 61 62 6c 65 |",false,|gSLTable|
|00000ea0| 0d 65 6e 64 20 69 66 0d | 70 75 74 20 22 6c 22 20 |.end if.|put "l" |
|00000eb0| 69 6e 74 6f 20 6c 69 6e | 65 20 31 20 6f 66 20 66 |into lin|e 1 of f|
|00000ec0| 6c 64 20 22 63 68 61 72 | 61 63 74 65 72 73 22 0d |ld "char|acters".|
|00000ed0| 65 6e 64 20 69 66 0d 65 | 6c 73 65 0d 69 66 20 70 |end if.e|lse.if p|
|00000ee0| 74 ad 22 73 22 20 74 68 | 65 6e 0d 69 66 20 69 74 |t."s" th|en.if it|
|00000ef0| ad 67 53 52 20 74 68 65 | 6e 0d 73 65 74 20 72 65 |.gSR the|n.set re|
|00000f00| 63 74 20 6f 66 20 66 6c | 64 20 22 73 74 79 6c 65 |ct of fl|d "style|
|00000f10| 64 22 20 74 6f 20 67 53 | 52 0d 73 68 6f 77 20 66 |d" to gS|R.show f|
|00000f20| 6c 64 20 22 6c 6f 63 61 | 6c 20 6e 6f 74 65 73 22 |ld "loca|l notes"|
|00000f30| 0d 65 6e 64 20 69 66 0d | 69 66 20 66 20 74 68 65 |.end if.|if f the|
|00000f40| 6e 0d 70 75 74 20 67 53 | 50 53 20 69 6e 74 6f 20 |n.put gS|PS into |
|00000f50| 68 62 0d 65 6c 73 65 0d | 73 65 74 20 74 65 78 74 |hb.else.|set text|
|00000f60| 68 65 69 67 68 74 20 6f | 66 20 66 6c 64 20 22 73 |height o|f fld "s|
|00000f70| 74 79 6c 65 64 22 20 74 | 6f 20 69 74 65 6d 20 32 |tyled" t|o item 2|
|00000f80| 20 6f 66 20 67 53 50 53 | 0d 43 68 61 6e 67 65 46 | of gSPS|.ChangeF|
|00000f90| 6f 6e 74 53 69 7a 65 73 | 20 6e 75 6d 62 65 72 20 |ontSizes| number |
|00000fa0| 6f 66 20 66 6c 64 20 22 | 73 74 79 6c 65 64 22 2c |of fld "|styled",|
|00000fb0| 66 61 6c 73 65 2c 67 4c | 53 54 61 62 6c 65 0d 65 |false,gL|STable.e|
|00000fc0| 6e 64 20 69 66 0d 70 75 | 74 20 22 73 22 20 69 6e |nd if.pu|t "s" in|
|00000fd0| 74 6f 20 6c 69 6e 65 20 | 31 20 6f 66 20 66 6c 64 |to line |1 of fld|
|00000fe0| 20 22 63 68 61 72 61 63 | 74 65 72 73 22 0d 65 6e | "charac|ters".en|
|00000ff0| 64 20 69 66 0d 65 6e 64 | 20 69 66 0d 69 66 20 68 |d if.end| if.if h|
|00001000| 62 ad 2d 31 20 74 68 65 | 6e 0d 73 65 74 20 74 65 |b.-1 the|n.set te|
|00001010| 78 74 73 69 7a 65 20 6f | 66 20 66 6c 64 20 22 73 |xtsize o|f fld "s|
|00001020| 74 79 6c 65 64 22 20 74 | 6f 20 69 74 65 6d 20 31 |tyled" t|o item 1|
|00001030| 20 6f 66 20 68 62 0d 73 | 65 74 20 74 65 78 74 73 | of hb.s|et texts|
|00001040| 69 7a 65 20 6f 66 20 63 | 68 61 72 20 31 20 74 6f |ize of c|har 1 to|
|00001050| 20 33 30 30 30 30 20 6f | 66 20 66 6c 64 20 22 73 | 30000 o|f fld "s|
|00001060| 74 79 6c 65 64 22 20 74 | 6f 20 69 74 65 6d 20 31 |tyled" t|o item 1|
|00001070| 20 6f 66 20 68 62 0d 73 | 65 74 20 74 65 78 74 68 | of hb.s|et texth|
|00001080| 65 69 67 68 74 20 6f 66 | 20 66 6c 64 20 22 73 74 |eight of| fld "st|
|00001090| 79 6c 65 64 22 20 74 6f | 20 69 74 65 6d 20 32 20 |yled" to| item 2 |
|000010a0| 6f 66 20 68 62 0d 65 6e | 64 20 69 66 0d 69 66 20 |of hb.en|d if.if |
|000010b0| 74 68 65 72 65 20 69 73 | 20 61 20 63 64 20 66 6c |there is| a cd fl|
|000010c0| 64 20 22 63 68 61 70 74 | 65 72 20 74 69 74 6c 65 |d "chapt|er title|
|000010d0| 22 20 74 68 65 6e 0d 73 | 65 74 20 74 6f 70 6c 65 |" then.s|et tople|
|000010e0| 66 74 20 6f 66 20 63 64 | 20 66 6c 64 20 22 63 68 |ft of cd| fld "ch|
|000010f0| 61 70 74 65 72 20 74 69 | 74 6c 65 22 20 74 6f 20 |apter ti|tle" to |
|00001100| 74 6f 70 6c 65 66 74 20 | 6f 66 20 66 6c 64 20 22 |topleft |of fld "|
|00001110| 73 74 79 6c 65 64 22 0d | 69 66 20 74 68 65 72 65 |styled".|if there|
|00001120| 20 69 73 20 61 20 62 75 | 74 74 6f 6e 20 22 6f 76 | is a bu|tton "ov|
|00001130| 65 72 68 65 61 64 22 20 | 74 68 65 6e 0d 69 66 20 |erhead" |then.if |
|00001140| 74 6f 70 6c 65 66 74 20 | 6f 66 20 62 75 74 74 6f |topleft |of butto|
|00001150| 6e 20 22 6f 76 65 72 68 | 65 61 64 22 20 69 73 20 |n "overh|ead" is |
|00001160| 77 69 74 68 69 6e 20 74 | 68 65 20 72 65 63 74 20 |within t|he rect |
|00001170| 6f 66 20 66 6c 64 20 22 | 73 74 79 6c 65 64 22 20 |of fld "|styled" |
|00001180| 74 68 65 6e 20 68 69 64 | 65 20 62 75 74 74 6f 6e |then hid|e button|
|00001190| 20 22 6f 76 65 72 68 65 | 61 64 22 0d 65 6c 73 65 | "overhe|ad".else|
|000011a0| 20 73 68 6f 77 20 62 75 | 74 74 6f 6e 20 22 6f 76 | show bu|tton "ov|
|000011b0| 65 72 68 65 61 64 22 0d | 65 6e 64 20 69 66 0d 65 |erhead".|end if.e|
|000011c0| 6e 64 20 69 66 0d 69 66 | 20 74 68 65 72 65 20 69 |nd if.if| there i|
|000011d0| 73 20 61 20 62 74 6e 20 | 22 63 61 70 22 20 74 68 |s a btn |"cap" th|
|000011e0| 65 6e 0d 67 65 74 20 73 | 63 72 69 70 74 20 6f 66 |en.get s|cript of|
|000011f0| 20 62 74 6e 20 22 63 61 | 70 22 0d 69 66 20 4c 67 | btn "ca|p".if Lg|
|00001200| 53 54 20 74 68 65 6e 20 | 67 65 74 20 6c 69 6e 65 |ST then |get line|
|00001210| 20 32 20 6f 66 20 69 74 | 0d 65 6c 73 65 20 67 65 | 2 of it|.else ge|
|00001220| 74 20 6c 69 6e 65 20 31 | 20 6f 66 20 69 74 0d 69 |t line 1| of it.i|
|00001230| 66 20 69 74 20 69 73 20 | 61 20 70 6f 69 6e 74 20 |f it is |a point |
|00001240| 74 68 65 6e 20 73 65 74 | 20 74 6f 70 6c 65 66 74 |then set| topleft|
|00001250| 20 6f 66 20 62 74 6e 20 | 22 63 61 70 22 20 74 6f | of btn |"cap" to|
|00001260| 20 69 74 0d 65 6e 64 20 | 69 66 0d 65 6e 64 20 73 | it.end |if.end s|
|00001270| 69 7a 65 66 6c 64 0d 6f | 6e 20 74 6f 63 61 72 64 |izefld.o|n tocard|
|00001280| 20 77 0d 73 65 6e 64 20 | 77 20 74 6f 20 74 68 69 | w.send |w to thi|
|00001290| 73 20 63 64 0d 65 6e 64 | 20 74 6f 63 61 72 64 0d |s cd.end| tocard.|
|000012a0| 6f 6e 20 6f 70 65 6e 63 | 61 72 64 0d 67 6c 6f 62 |on openc|ard.glob|
|000012b0| 61 6c 20 6f 6c 64 74 69 | 63 6b 73 2c 67 52 46 0d |al oldti|cks,gRF.|
|000012c0| 69 66 20 74 68 65 72 65 | 20 69 73 20 61 20 77 69 |if there| is a wi|
|000012d0| 6e 64 6f 77 20 22 67 61 | 75 67 65 22 20 74 68 65 |ndow "ga|uge" the|
|000012e0| 6e 20 69 66 20 67 52 46 | 3d 22 22 20 74 68 65 6e |n if gRF|="" then|
|000012f0| 20 73 65 74 20 73 63 72 | 6f 6c 6c 20 6f 66 20 77 | set scr|oll of w|
|00001300| 69 6e 64 6f 77 20 22 67 | 61 75 67 65 22 20 74 6f |indow "g|auge" to|
|00001310| 20 67 53 63 72 6c 28 29 | 0d 69 66 20 43 44 73 28 | gScrl()|.if CDs(|
|00001320| 29 20 74 68 65 6e 20 74 | 6f 63 61 72 64 20 6f 63 |) then t|ocard oc|
|00001330| 73 74 75 66 66 0d 55 53 | 0d 69 66 20 74 69 63 6b |stuff.US|.if tick|
|00001340| 73 28 29 2d 6f 6c 64 74 | 69 63 6b 73 3e 33 30 30 |s()-oldt|icks>300|
|00001350| 20 74 68 65 6e 20 74 6f | 63 61 72 64 20 70 6c 0d | then to|card pl.|
|00001360| 70 61 73 73 20 6f 70 65 | 6e 63 61 72 64 0d 65 6e |pass ope|ncard.en|
|00001370| 64 20 6f 70 65 6e 63 61 | 72 64 0d 6f 6e 20 55 44 |d openca|rd.on UD|
|00001380| 62 0d 67 6c 6f 62 61 6c | 20 4c 67 53 54 0d 69 66 |b.global| LgST.if|
|00001390| 20 6e 6f 74 20 43 44 73 | 28 29 20 74 68 65 6e 20 | not CDs|() then |
|000013a0| 65 78 69 74 20 55 44 62 | 0d 70 75 74 20 66 6c 64 |exit UDb|.put fld|
|000013b0| 20 22 76 65 72 74 69 63 | 61 6c 73 22 20 69 6e 74 | "vertic|als" int|
|000013c0| 6f 20 76 74 0d 72 65 70 | 65 61 74 20 77 69 74 68 |o vt.rep|eat with|
|000013d0| 20 61 3d 31 20 74 6f 20 | 34 0d 70 75 74 20 22 62 | a=1 to |4.put "b|
|000013e0| 6c 61 63 6b 6c 69 6e 65 | 22 26 61 20 69 6e 74 6f |lackline|"&a into|
|000013f0| 20 42 0d 69 66 20 6c 69 | 6e 65 20 61 20 6f 66 20 | B.if li|ne a of |
|00001400| 76 74 20 69 73 20 6e 6f | 74 20 22 22 20 74 68 65 |vt is no|t "" the|
|00001410| 6e 0d 73 65 74 20 68 65 | 69 67 68 74 20 6f 66 20 |n.set he|ight of |
|00001420| 62 67 20 42 74 6e 20 42 | 20 74 6f 20 69 74 65 6d |bg Btn B| to item|
|00001430| 20 32 20 6f 66 20 6c 69 | 6e 65 20 61 20 6f 66 20 | 2 of li|ne a of |
|00001440| 76 74 0d 73 65 74 20 74 | 6f 70 20 6f 66 20 62 67 |vt.set t|op of bg|
|00001450| 20 42 74 6e 20 42 20 74 | 6f 20 69 74 65 6d 20 31 | Btn B t|o item 1|
|00001460| 20 6f 66 20 6c 69 6e 65 | 20 61 20 6f 66 20 76 74 | of line| a of vt|
|00001470| 0d 69 66 20 4c 67 53 54 | 20 74 68 65 6e 20 73 65 |.if LgST| then se|
|00001480| 74 20 6c 65 66 74 20 6f | 66 20 62 67 20 42 74 6e |t left o|f bg Btn|
|00001490| 20 42 20 74 6f 20 6c 65 | 66 74 20 6f 66 20 62 67 | B to le|ft of bg|
|000014a0| 20 42 74 6e 20 22 4d 42 | 32 22 2b 34 0d 65 6c 73 | Btn "MB|2"+4.els|
|000014b0| 65 20 73 65 74 20 6c 65 | 66 74 20 6f 66 20 62 67 |e set le|ft of bg|
|000014c0| 20 42 74 6e 20 42 20 74 | 6f 20 6c 65 66 74 20 6f | Btn B t|o left o|
|000014d0| 66 20 62 67 20 42 74 6e | 20 22 4d 42 31 22 2b 34 |f bg Btn| "MB1"+4|
|000014e0| 0d 73 68 6f 77 20 62 67 | 20 42 74 6e 20 42 0d 65 |.show bg| Btn B.e|
|000014f0| 6c 73 65 0d 68 69 64 65 | 20 62 67 20 42 74 6e 20 |lse.hide| bg Btn |
|00001500| 42 0d 65 6e 64 20 69 66 | 0d 65 6e 64 20 72 65 70 |B.end if|.end rep|
|00001510| 65 61 74 0d 65 6e 64 20 | 55 44 62 0d 6f 6e 20 6f |eat.end |UDb.on o|
|00001520| 63 73 74 75 66 66 0d 67 | 6c 6f 62 61 6c 20 54 44 |cstuff.g|lobal TD|
|00001530| 69 2c 63 53 54 0d 55 44 | 62 0d 67 65 74 20 66 6c |i,cST.UD|b.get fl|
|00001540| 64 20 22 6d 61 72 6b 65 | 64 20 63 61 72 64 73 22 |d "marke|d cards"|
|00001550| 0d 69 66 20 6e 75 6d 62 | 65 72 20 6f 66 20 77 6f |.if numb|er of wo|
|00001560| 72 64 73 20 69 6e 20 69 | 74 ad 32 20 74 68 65 6e |rds in i|t.2 then|
|00001570| 0d 69 66 20 6f 66 66 73 | 65 74 28 72 65 74 75 72 |.if offs|et(retur|
|00001580| 6e 26 28 43 4e 28 29 29 | 26 20 72 65 74 75 72 6e |n&(CN())|& return|
|00001590| 2c 69 74 29 3e 30 20 74 | 68 65 6e 20 67 65 74 20 |,it)>0 t|hen get |
|000015a0| 54 44 69 0d 65 6c 73 65 | 20 67 65 74 20 33 30 30 |TDi.else| get 300|
|000015b0| 31 36 0d 69 66 20 69 63 | 6f 6e 20 6f 66 20 62 67 |16.if ic|on of bg|
|000015c0| 20 42 74 6e 20 22 6d 61 | 72 6b 6d 65 22 ad 69 74 | Btn "ma|rkme".it|
|000015d0| 20 74 68 65 6e 20 73 65 | 74 20 69 63 6f 6e 20 6f | then se|t icon o|
|000015e0| 66 20 62 67 20 42 74 6e | 20 22 6d 61 72 6b 6d 65 |f bg Btn| "markme|
|000015f0| 22 20 74 6f 20 69 74 0d | 65 6e 64 20 69 66 0d 73 |" to it.|end if.s|
|00001600| 69 7a 65 66 6c 64 0d 69 | 66 20 63 53 54 20 74 68 |izefld.i|f cST th|
|00001610| 65 6e 20 55 44 63 6c 69 | 70 73 0d 67 65 74 20 43 |en UDcli|ps.get C|
|00001620| 4e 28 29 0d 69 66 20 66 | 6c 64 20 22 70 61 67 65 |N().if f|ld "page|
|00001630| 6e 6f 22 ad 69 74 20 74 | 68 65 6e 20 70 75 74 20 |no".it t|hen put |
|00001640| 69 74 20 69 6e 74 6f 20 | 66 6c 64 20 22 70 61 67 |it into |fld "pag|
|00001650| 65 6e 6f 22 0d 65 6e 64 | 20 6f 63 73 74 75 66 66 |eno".end| ocstuff|
|00001660| 0d 6f 6e 20 67 6f 6e 65 | 78 74 0d 69 66 20 52 43 |.on gone|xt.if RC|
|00001670| 4e 28 29 ad 6e 75 6d 62 | 65 72 20 6f 66 20 63 64 |N().numb|er of cd|
|00001680| 73 20 74 68 65 6e 0d 67 | 6f 20 6e 65 78 74 20 63 |s then.g|o next c|
|00001690| 64 0d 69 66 20 6d 6f 75 | 73 65 28 29 3d 22 64 6f |d.if mou|se()="do|
|000016a0| 77 6e 22 20 74 68 65 6e | 0d 72 65 70 65 61 74 20 |wn" then|.repeat |
|000016b0| 75 6e 74 69 6c 20 6d 6f | 75 73 65 28 29 3d 22 75 |until mo|use()="u|
|000016c0| 70 22 0d 67 6f 20 63 64 | 28 52 43 4e 28 29 20 2b |p".go cd|(RCN() +|
|000016d0| 20 31 30 29 0d 65 6e 64 | 20 72 65 70 65 61 74 0d | 10).end| repeat.|
|000016e0| 65 6e 64 20 69 66 0d 65 | 6e 64 20 69 66 0d 65 6e |end if.e|nd if.en|
|000016f0| 64 20 67 6f 6e 65 78 74 | 0d 6f 6e 20 67 6f 70 72 |d gonext|.on gopr|
|00001700| 65 76 0d 69 66 20 52 43 | 4e 28 29 ad 31 20 74 68 |ev.if RC|N().1 th|
|00001710| 65 6e 0d 67 6f 20 70 72 | 65 76 20 63 64 0d 69 66 |en.go pr|ev cd.if|
|00001720| 20 6d 6f 75 73 65 28 29 | 3d 22 64 6f 77 6e 22 20 | mouse()|="down" |
|00001730| 74 68 65 6e 0d 72 65 70 | 65 61 74 20 75 6e 74 69 |then.rep|eat unti|
|00001740| 6c 20 6d 6f 75 73 65 28 | 29 3d 22 75 70 22 0d 67 |l mouse(|)="up".g|
|00001750| 6f 20 63 64 28 52 43 4e | 28 29 2d 31 30 29 0d 65 |o cd(RCN|()-10).e|
|00001760| 6e 64 20 72 65 70 65 61 | 74 0d 65 6e 64 20 69 66 |nd repea|t.end if|
|00001770| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 67 6f 70 72 |.end if.|end gopr|
|00001780| 65 76 0d 66 75 6e 63 74 | 69 6f 6e 20 6d 79 43 78 |ev.funct|ion myCx|
|00001790| 20 77 0d 69 66 20 77 3d | 22 4c 22 20 74 68 65 6e | w.if w=|"L" then|
|000017a0| 0d 70 75 74 20 63 6c 69 | 63 6b 4c 6f 63 28 29 20 |.put cli|ckLoc() |
|000017b0| 69 6e 74 6f 20 74 0d 65 | 6c 73 65 20 69 66 20 77 |into t.e|lse if w|
|000017c0| 3d 22 43 22 20 74 68 65 | 6e 0d 70 75 74 20 63 6c |="C" the|n.put cl|
|000017d0| 69 63 6b 63 68 75 6e 6b | 28 29 20 69 6e 74 6f 20 |ickchunk|() into |
|000017e0| 74 0d 65 6c 73 65 20 69 | 66 20 77 3d 22 54 22 20 |t.else i|f w="T" |
|000017f0| 74 68 65 6e 0d 70 75 74 | 20 76 61 6c 75 65 20 6f |then.put| value o|
|00001800| 66 20 63 6c 69 63 6b 63 | 68 75 6e 6b 28 29 20 69 |f clickc|hunk() i|
|00001810| 6e 74 6f 20 74 0d 65 6e | 64 20 69 66 0d 69 66 20 |nto t.en|d if.if |
|00001820| 74 ad 22 22 20 74 68 65 | 6e 20 67 65 74 20 74 65 |t."" the|n get te|
|00001830| 78 74 73 69 7a 65 20 6f | 66 20 63 68 61 72 20 31 |xtsize o|f char 1|
|00001840| 20 6f 66 20 74 61 72 67 | 65 74 0d 72 65 74 75 72 | of targ|et.retur|
|00001850| 6e 20 74 0d 65 6e 64 20 | 6d 79 43 58 0d 66 75 6e |n t.end |myCX.fun|
|00001860| 63 74 69 6f 6e 20 6d 79 | 53 78 20 77 0d 69 66 20 |ction my|Sx w.if |
|00001870| 77 3d 22 4c 22 20 74 68 | 65 6e 0d 70 75 74 20 73 |w="L" th|en.put s|
|00001880| 65 6c 65 63 74 65 64 6c | 6f 63 28 29 20 69 6e 74 |electedl|oc() int|
|00001890| 6f 20 74 0d 65 6c 73 65 | 20 69 66 20 77 3d 22 43 |o t.else| if w="C|
|000018a0| 22 20 74 68 65 6e 0d 70 | 75 74 20 74 68 65 20 73 |" then.p|ut the s|
|000018b0| 65 6c 65 63 74 65 64 63 | 68 75 6e 6b 20 69 6e 74 |electedc|hunk int|
|000018c0| 6f 20 74 0d 65 6c 73 65 | 20 69 66 20 77 3d 22 54 |o t.else| if w="T|
|000018d0| 22 20 74 68 65 6e 0d 70 | 75 74 20 74 68 65 20 73 |" then.p|ut the s|
|000018e0| 65 6c 65 63 74 65 64 74 | 65 78 74 20 69 6e 74 6f |electedt|ext into|
|000018f0| 20 74 0d 65 6e 64 20 69 | 66 0d 69 66 20 74 ad 22 | t.end i|f.if t."|
|00001900| 22 20 74 68 65 6e 0d 67 | 65 74 20 73 65 6c 65 63 |" then.g|et selec|
|00001910| 74 65 64 66 69 65 6c 64 | 28 29 0d 69 66 20 63 68 |tedfield|().if ch|
|00001920| 61 72 20 31 20 6f 66 20 | 69 74 3d 22 62 22 20 74 |ar 1 of |it="b" t|
|00001930| 68 65 6e 0d 67 65 74 20 | 74 65 78 74 73 69 7a 65 |hen.get |textsize|
|00001940| 20 6f 66 20 63 68 61 72 | 20 31 20 6f 66 20 66 6c | of char| 1 of fl|
|00001950| 64 20 28 77 6f 72 64 20 | 33 20 6f 66 20 69 74 29 |d (word |3 of it)|
|00001960| 0d 65 6c 73 65 20 69 66 | 20 63 68 61 72 20 31 20 |.else if| char 1 |
|00001970| 6f 66 20 69 74 3d 22 63 | 22 20 74 68 65 6e 0d 67 |of it="c|" then.g|
|00001980| 65 74 20 74 65 78 74 73 | 69 7a 65 20 6f 66 20 63 |et texts|ize of c|
|00001990| 68 61 72 20 31 20 6f 66 | 20 63 64 20 66 6c 64 20 |har 1 of| cd fld |
|000019a0| 28 77 6f 72 64 20 33 20 | 6f 66 20 69 74 29 0d 65 |(word 3 |of it).e|
|000019b0| 6e 64 20 69 66 0d 65 6e | 64 20 69 66 0d 72 65 74 |nd if.en|d if.ret|
|000019c0| 75 72 6e 20 74 0d 65 6e | 64 20 6d 79 53 78 0d 6f |urn t.en|d mySx.o|
|000019d0| 6e 20 63 57 68 61 74 20 | 77 68 0d 70 75 74 20 67 |n cWhat |wh.put g|
|000019e0| 65 74 73 74 72 28 22 63 | 68 65 63 6b 61 72 65 61 |etstr("c|heckarea|
|000019f0| 73 53 74 72 22 29 20 69 | 6e 74 6f 20 63 61 0d 67 |sStr") i|nto ca.g|
|00001a00| 65 74 20 67 65 74 73 74 | 72 28 22 54 6f 44 6f 53 |et getst|r("ToDoS|
|00001a10| 74 72 22 29 0d 72 65 70 | 65 61 74 20 77 69 74 68 |tr").rep|eat with|
|00001a20| 20 61 3d 31 20 74 6f 20 | 6e 75 6d 4c 6e 73 28 63 | a=1 to |numLns(c|
|00001a30| 61 29 0d 69 66 20 77 68 | 20 69 73 20 77 69 74 68 |a).if wh| is with|
|00001a40| 69 6e 20 6c 69 6e 65 20 | 61 20 6f 66 20 63 61 20 |in line |a of ca |
|00001a50| 74 68 65 6e 0d 64 6f 20 | 69 74 65 6d 20 61 20 6f |then.do |item a o|
|00001a60| 66 20 69 74 0d 65 78 69 | 74 20 72 65 70 65 61 74 |f it.exi|t repeat|
|00001a70| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 72 65 70 65 |.end if.|end repe|
|00001a80| 61 74 0d 65 6e 64 20 63 | 57 68 61 74 0d 6f 6e 20 |at.end c|What.on |
|00001a90| 6d 6f 75 73 65 64 6f 77 | 6e 69 6e 70 69 63 74 75 |mousedow|ninpictu|
|00001aa0| 72 65 20 57 2c 77 68 0d | 69 66 20 57 3d 63 74 6c |re W,wh.|if W=ctl|
|00001ab0| 77 4e 61 6d 65 28 29 20 | 74 68 65 6e 20 63 57 68 |wName() |then cWh|
|00001ac0| 61 74 20 77 68 0d 69 66 | 20 57 3d 22 67 61 75 67 |at wh.if| W="gaug|
|00001ad0| 65 22 20 74 68 65 6e 20 | 64 6f 43 53 54 52 20 22 |e" then |doCSTR "|
|00001ae0| 6d 6f 76 65 67 61 75 67 | 65 43 53 54 52 22 0d 70 |movegaug|eCSTR".p|
|00001af0| 61 73 73 20 6d 6f 75 73 | 65 64 6f 77 6e 69 6e 70 |ass mous|edowninp|
|00001b00| 69 63 74 75 72 65 0d 65 | 6e 64 20 6d 6f 75 73 65 |icture.e|nd mouse|
|00001b10| 64 6f 77 6e 69 6e 70 69 | 63 74 75 72 65 0d 6f 6e |downinpi|cture.on|
|00001b20| 20 69 64 6c 65 0d 67 6c | 6f 62 61 6c 20 6d 53 54 | idle.gl|obal mST|
|00001b30| 2c 6d 53 0d 69 66 20 6d | 53 3d 22 22 20 74 68 65 |,mS.if m|S="" the|
|00001b40| 6e 20 70 75 74 20 66 61 | 6c 73 65 20 69 6e 74 6f |n put fa|lse into|
|00001b50| 20 6d 53 0d 69 66 20 6d | 53 54 3d 74 72 75 65 20 | mS.if m|ST=true |
|00001b60| 74 68 65 6e 0d 6d 79 53 | 48 4d 42 20 74 72 75 65 |then.myS|HMB true|
|00001b70| 0d 65 6c 73 65 0d 67 65 | 74 20 6d 6f 75 73 65 76 |.else.ge|t mousev|
|00001b80| 28 29 2b 74 6f 70 20 6f | 66 20 63 64 20 77 69 6e |()+top o|f cd win|
|00001b90| 64 6f 77 0d 69 66 20 69 | 74 3c 35 20 74 68 65 6e |dow.if i|t<5 then|
|00001ba0| 20 6d 79 53 48 4d 42 20 | 74 72 75 65 0d 65 6c 73 | mySHMB |true.els|
|00001bb0| 65 20 69 66 20 69 74 3e | 32 30 20 74 68 65 6e 20 |e if it>|20 then |
|00001bc0| 6d 79 53 48 4d 42 20 66 | 61 6c 73 65 0d 65 6e 64 |mySHMB f|alse.end|
|00001bd0| 20 69 66 0d 70 61 73 73 | 20 69 64 6c 65 0d 65 6e | if.pass| idle.en|
|00001be0| 64 20 69 64 6c 65 0d 6f | 6e 20 6d 79 53 48 4d 42 |d idle.o|n mySHMB|
|00001bf0| 20 73 0d 67 6c 6f 62 61 | 6c 20 6d 53 0d 69 66 20 | s.globa|l mS.if |
|00001c00| 73 20 74 68 65 6e 0d 69 | 66 20 6e 6f 74 20 6d 53 |s then.i|f not mS|
|00001c10| 20 74 68 65 6e 0d 73 68 | 6f 77 20 6d 65 6e 75 62 | then.sh|ow menub|
|00001c20| 61 72 0d 70 75 74 20 73 | 20 69 6e 74 6f 20 6d 53 |ar.put s| into mS|
|00001c30| 0d 65 6e 64 20 69 66 0d | 65 6c 73 65 0d 69 66 20 |.end if.|else.if |
|00001c40| 6d 53 20 74 68 65 6e 0d | 68 69 64 65 20 6d 65 6e |mS then.|hide men|
|00001c50| 75 62 61 72 0d 70 75 74 | 20 73 20 69 6e 74 6f 20 |ubar.put| s into |
|00001c60| 6d 53 0d 65 6e 64 20 69 | 66 0d 65 6e 64 20 69 66 |mS.end i|f.end if|
|00001c70| 0d 65 6e 64 20 6d 79 53 | 48 4d 42 0d 6f 6e 20 6e |.end myS|HMB.on n|
|00001c80| 65 78 74 62 75 73 79 0d | 67 6c 6f 62 61 6c 20 54 |extbusy.|global T|
|00001c90| 43 0d 69 66 20 54 43 3d | 22 22 20 6f 72 20 54 43 |C.if TC=|"" or TC|
|00001ca0| b3 31 31 30 31 36 20 74 | 68 65 6e 20 70 75 74 20 |.11016 t|hen put |
|00001cb0| 31 31 30 30 30 20 69 6e | 74 6f 20 54 43 0d 61 64 |11000 in|to TC.ad|
|00001cc0| 64 20 31 20 74 6f 20 54 | 43 0d 73 65 74 20 63 75 |d 1 to T|C.set cu|
|00001cd0| 72 73 6f 72 20 74 6f 20 | 54 43 0d 65 6e 64 20 6e |rsor to |TC.end n|
|00001ce0| 65 78 74 62 75 73 79 0d | 6f 6e 20 73 68 6f 77 63 |extbusy.|on showc|
|00001cf0| 6f 6e 74 65 6e 74 73 0d | 67 6c 6f 62 61 6c 20 74 |ontents.|global t|
|00001d00| 63 74 2c 63 68 61 70 74 | 65 72 73 2c 63 68 61 70 |ct,chapt|ers,chap|
|00001d10| 74 65 72 73 74 61 72 74 | 2c 73 70 63 61 73 65 0d |terstart|,spcase.|
|00001d20| 69 66 20 6c 69 6e 65 20 | 31 20 6f 66 20 73 70 63 |if line |1 of spc|
|00001d30| 61 73 65 3d 22 74 72 75 | 65 22 20 74 68 65 6e 20 |ase="tru|e" then |
|00001d40| 73 65 6e 64 20 22 73 68 | 6f 77 63 6f 6e 74 65 6e |send "sh|owconten|
|00001d50| 74 73 22 20 74 6f 20 63 | 61 72 64 0d 65 6c 73 65 |ts" to c|ard.else|
|00001d60| 0d 69 66 20 63 68 61 70 | 74 65 72 73 3d 22 22 20 |.if chap|ters="" |
|00001d70| 74 68 65 6e 20 66 69 6c | 6c 74 68 65 6d 0d 67 65 |then fil|lthem.ge|
|00001d80| 74 20 70 6f 70 69 74 75 | 70 28 63 68 61 70 74 65 |t popitu|p(chapte|
|00001d90| 72 73 2c 30 2c 63 6c 69 | 63 6b 68 28 29 2c 63 6c |rs,0,cli|ckh(),cl|
|00001da0| 69 63 6b 76 28 29 2c 22 | 6e 6f 73 75 62 6d 65 6e |ickv(),"|nosubmen|
|00001db0| 75 73 22 29 0d 67 65 74 | 20 69 74 65 6d 20 31 20 |us").get| item 1 |
|00001dc0| 6f 66 20 69 74 0d 69 66 | 20 69 74 ad 30 20 74 68 |of it.if| it.0 th|
|00001dd0| 65 6e 20 67 6f 20 63 64 | 20 28 69 74 65 6d 20 69 |en go cd| (item i|
|00001de0| 74 20 6f 66 20 63 68 61 | 70 74 65 72 73 74 61 72 |t of cha|pterstar|
|00001df0| 74 29 2b 74 63 74 0d 65 | 6e 64 20 69 66 0d 65 6e |t)+tct.e|nd if.en|
|00001e00| 64 20 73 68 6f 77 63 6f | 6e 74 65 6e 74 73 0d 6f |d showco|ntents.o|
|00001e10| 6e 20 73 68 6f 77 62 6f | 6f 6b 73 0d 67 6c 6f 62 |n showbo|oks.glob|
|00001e20| 61 6c 20 62 6f 6f 6b 73 | 0d 70 75 74 20 73 74 72 |al books|.put str|
|00001e30| 69 70 65 6d 28 62 6f 6f | 6b 73 2c 22 3b 5e 21 3c |ipem(boo|ks,";^!<|
|00001e40| 2f 28 22 2c 20 22 3a 27 | 2e b2 5c 7b 22 29 20 69 |/(", ":'|..\{") i|
|00001e50| 6e 74 6f 20 62 0d 70 75 | 74 20 74 69 63 6b 73 28 |nto b.pu|t ticks(|
|00001e60| 29 20 69 6e 74 6f 20 74 | 63 0d 67 65 74 20 70 6f |) into t|c.get po|
|00001e70| 70 69 74 75 70 28 62 2c | 30 2c 63 6c 69 63 6b 48 |pitup(b,|0,clickH|
|00001e80| 28 29 2c 63 6c 69 63 6b | 56 28 29 2c 22 4e 6f 53 |(),click|V(),"NoS|
|00001e90| 75 62 4d 65 6e 75 73 22 | 29 0d 70 75 74 20 74 69 |ubMenus"|).put ti|
|00001ea0| 63 6b 73 28 29 2d 74 63 | 20 69 6e 74 6f 20 74 63 |cks()-tc| into tc|
|00001eb0| 0d 69 66 20 74 63 3e 33 | 30 20 74 68 65 6e 0d 69 |.if tc>3|0 then.i|
|00001ec0| 66 20 69 74 65 6d 20 31 | 20 6f 66 20 69 74 ad 30 |f item 1| of it.0|
|00001ed0| 20 74 68 65 6e 0d 67 6f | 20 73 74 61 63 6b 20 6c | then.go| stack l|
|00001ee0| 69 6e 65 20 28 69 74 65 | 6d 20 31 20 6f 66 20 69 |ine (ite|m 1 of i|
|00001ef0| 74 29 20 6f 66 20 62 6f | 6f 6b 73 0d 65 6e 64 20 |t) of bo|oks.end |
|00001f00| 69 66 0d 65 6e 64 20 69 | 66 0d 65 6e 64 20 73 68 |if.end i|f.end sh|
|00001f10| 6f 77 62 6f 6f 6b 73 0d | 6f 6e 20 64 6f 6d 65 6e |owbooks.|on domen|
|00001f20| 75 20 61 2c 62 0d 67 6c | 6f 62 61 6c 20 67 54 54 |u a,b.gl|obal gTT|
|00001f30| 6f 6f 6c 73 49 6e 73 74 | 61 6c 6c 65 64 0d 70 75 |oolsInst|alled.pu|
|00001f40| 74 20 74 68 65 20 6d 65 | 6e 75 73 20 69 6e 74 6f |t the me|nus into|
|00001f50| 20 74 6d 0d 67 65 74 20 | 6c 69 6e 65 20 32 20 6f | tm.get |line 2 o|
|00001f60| 66 20 74 6d 0d 69 66 20 | 28 62 3d 69 74 29 20 74 |f tm.if |(b=it) t|
|00001f70| 68 65 6e 20 69 66 20 61 | 3d 48 43 4d 49 28 34 35 |hen if a|=HCMI(45|
|00001f80| 29 20 74 68 65 6e 0d 61 | 6e 73 77 65 72 20 74 53 |) then.a|nswer tS|
|00001f90| 74 72 28 22 4c 69 62 4d | 73 67 22 2c 31 29 0d 65 |tr("LibM|sg",1).e|
|00001fa0| 78 69 74 20 64 6f 6d 65 | 6e 75 0d 65 6e 64 20 69 |xit dome|nu.end i|
|00001fb0| 66 0d 69 66 20 67 54 54 | 6f 6f 6c 73 49 6e 73 74 |f.if gTT|oolsInst|
|00001fc0| 61 6c 6c 65 64 3d 22 74 | 72 75 65 22 20 74 68 65 |alled="t|rue" the|
|00001fd0| 6e 20 70 61 73 73 20 64 | 6f 6d 65 6e 75 0d 67 65 |n pass d|omenu.ge|
|00001fe0| 74 20 6c 69 6e 65 20 33 | 20 6f 66 20 74 6d 0d 69 |t line 3| of tm.i|
|00001ff0| 66 20 28 62 3d 69 74 29 | 20 74 68 65 6e 20 69 66 |f (b=it)| then if|
|00002000| 20 61 3d 6c 69 6e 65 20 | 34 20 6f 66 20 6d 65 6e | a=line |4 of men|
|00002010| 75 20 69 74 20 61 6e 64 | 20 43 44 73 28 29 20 61 |u it and| CDs() a|
|00002020| 6e 64 20 77 6f 72 64 20 | 38 20 6f 66 20 6d 79 53 |nd word |8 of myS|
|00002030| 78 28 22 43 22 29 ad 22 | 22 20 74 68 65 6e 20 64 |x("C")."|" then d|
|00002040| 6f 43 53 54 52 20 22 43 | 6f 70 79 43 53 54 52 22 |oCSTR "C|opyCSTR"|
|00002050| 0d 65 6c 73 65 20 70 61 | 73 73 20 64 6f 6d 65 6e |.else pa|ss domen|
|00002060| 75 0d 65 6c 73 65 20 70 | 61 73 73 20 64 6f 6d 65 |u.else p|ass dome|
|00002070| 6e 75 0d 65 6e 64 20 64 | 6f 6d 65 6e 75 0d 66 75 |nu.end d|omenu.fu|
|00002080| 6e 63 74 69 6f 6e 20 6d | 6f 75 73 65 4d 6f 76 65 |nction m|ouseMove|
|00002090| 64 20 77 0d 69 66 20 6d | 6f 75 73 65 28 29 3d 22 |d w.if m|ouse()="|
|000020a0| 64 6f 77 6e 22 20 74 68 | 65 6e 0d 70 75 74 20 6d |down" th|en.put m|
|000020b0| 6f 75 73 65 6c 6f 63 28 | 29 20 69 6e 74 6f 20 7a |ouseloc(|) into z|
|000020c0| 0d 72 65 74 75 72 6e 20 | 6d 61 78 28 61 62 73 28 |.return |max(abs(|
|000020d0| 69 74 65 6d 20 31 20 6f | 66 20 77 2d 69 74 65 6d |item 1 o|f w-item|
|000020e0| 20 31 20 6f 66 20 7a 29 | 2c 61 62 73 28 69 74 65 | 1 of z)|,abs(ite|
|000020f0| 6d 20 32 20 6f 66 20 77 | 2d 69 74 65 6d 20 32 20 |m 2 of w|-item 2 |
|00002100| 6f 66 20 7a 29 29 0d 65 | 6c 73 65 0d 72 65 74 75 |of z)).e|lse.retu|
|00002110| 72 6e 20 2d 31 0d 65 6e | 64 20 69 66 0d 65 6e 64 |rn -1.en|d if.end|
|00002120| 20 6d 6f 75 73 65 4d 6f | 76 65 64 0d 6f 6e 20 6d | mouseMo|ved.on m|
|00002130| 6f 75 73 65 64 6f 77 6e | 0d 67 6c 6f 62 61 6c 20 |ousedown|.global |
|00002140| 70 6f 70 75 70 74 65 78 | 74 2c 6e 61 6d 65 6c 69 |popuptex|t,nameli|
|00002150| 73 74 2c 69 64 6c 69 73 | 74 2c 66 69 72 73 74 6e |st,idlis|t,firstn|
|00002160| 61 6d 65 2c 74 68 65 54 | 65 78 74 2c 46 49 43 0d |ame,theT|ext,FIC.|
|00002170| 69 66 20 6e 6f 74 20 43 | 44 73 28 29 20 74 68 65 |if not C|Ds() the|
|00002180| 6e 20 65 78 69 74 20 6d | 6f 75 73 65 64 6f 77 6e |n exit m|ousedown|
|00002190| 0d 69 66 20 6e 6f 74 20 | 28 6e 61 6d 65 20 6f 66 |.if not |(name of|
|000021a0| 20 74 61 72 67 65 74 20 | 63 6f 6e 74 61 69 6e 73 | target |contains|
|000021b0| 20 22 66 69 65 6c 64 22 | 29 20 74 68 65 6e 20 65 | "field"|) then e|
|000021c0| 78 69 74 20 6d 6f 75 73 | 65 64 6f 77 6e 0d 69 66 |xit mous|edown.if|
|000021d0| 20 74 68 65 20 73 65 6c | 65 63 74 65 64 63 68 75 | the sel|ectedchu|
|000021e0| 6e 6b ad 65 6d 70 74 79 | 20 74 68 65 6e 20 73 65 |nk.empty| then se|
|000021f0| 6c 65 63 74 20 65 6d 70 | 74 79 0d 70 75 74 20 6d |lect emp|ty.put m|
|00002200| 79 43 78 28 22 4c 22 29 | 20 69 6e 74 6f 20 63 6c |yCx("L")| into cl|
|00002210| 0d 70 75 74 20 6d 79 43 | 78 28 22 43 22 29 20 69 |.put myC|x("C") i|
|00002220| 6e 74 6f 20 63 63 0d 69 | 66 20 6d 6f 75 73 65 28 |nto cc.i|f mouse(|
|00002230| 29 ad 22 75 70 22 20 74 | 68 65 6e 0d 67 65 74 20 |)."up" t|hen.get |
|00002240| 6d 6f 75 73 65 4d 6f 76 | 65 64 28 63 6c 29 0d 69 |mouseMov|ed(cl).i|
|00002250| 66 20 69 74 b3 33 20 74 | 68 65 6e 0d 64 6f 6d 61 |f it.3 t|hen.doma|
|00002260| 72 6b 74 65 78 74 0d 65 | 78 69 74 20 6d 6f 75 73 |rktext.e|xit mous|
|00002270| 65 64 6f 77 6e 0d 65 6e | 64 20 69 66 0d 70 75 74 |edown.en|d if.put|
|00002280| 20 67 65 74 43 6c 69 63 | 6b 65 64 57 6f 72 64 28 | getClic|kedWord(|
|00002290| 6c 61 73 74 20 77 6f 72 | 64 20 6f 66 20 63 63 2c |last wor|d of cc,|
|000022a0| 63 68 61 72 20 31 20 6f | 66 20 77 6f 72 64 20 36 |char 1 o|f word 6|
|000022b0| 20 6f 66 20 63 63 2c 22 | 22 2c 63 6c 29 20 69 6e | of cc,"|",cl) in|
|000022c0| 74 6f 20 63 74 0d 69 66 | 20 70 6f 70 75 70 74 65 |to ct.if| popupte|
|000022d0| 78 74 3d 22 22 20 74 68 | 65 6e 20 70 75 74 20 74 |xt="" th|en put t|
|000022e0| 53 74 72 28 22 4c 69 62 | 4d 73 67 22 2c 32 29 20 |Str("Lib|Msg",2) |
|000022f0| 69 6e 74 6f 20 70 6f 70 | 75 70 74 65 78 74 0d 70 |into pop|uptext.p|
|00002300| 75 74 20 22 3c 55 22 26 | 73 74 72 69 70 65 6d 28 |ut "<U"&|stripem(|
|00002310| 63 74 29 26 70 6f 70 75 | 70 74 65 78 74 20 69 6e |ct)&popu|ptext in|
|00002320| 74 6f 20 68 6f 6c 64 65 | 72 0d 65 6e 64 20 69 66 |to holde|r.end if|
|00002330| 0d 67 65 74 20 6d 6f 75 | 73 65 4d 6f 76 65 64 28 |.get mou|seMoved(|
|00002340| 63 6c 29 0d 69 66 20 69 | 74 b3 33 20 74 68 65 6e |cl).if i|t.3 then|
|00002350| 0d 64 6f 6d 61 72 6b 74 | 65 78 74 0d 65 78 69 74 |.domarkt|ext.exit|
|00002360| 20 6d 6f 75 73 65 64 6f | 77 6e 0d 65 6e 64 20 69 | mousedo|wn.end i|
|00002370| 66 0d 69 66 20 69 74 3c | 30 20 74 68 65 6e 0d 69 |f.if it<|0 then.i|
|00002380| 66 20 6d 6f 75 73 65 28 | 29 3d 22 75 70 22 20 74 |f mouse(|)="up" t|
|00002390| 68 65 6e 0d 63 62 75 73 | 79 0d 70 75 74 20 6d 79 |hen.cbus|y.put my|
|000023a0| 43 78 28 22 54 22 29 20 | 69 6e 74 6f 20 63 74 0d |Cx("T") |into ct.|
|000023b0| 69 66 20 74 65 78 74 73 | 74 79 6c 65 20 6f 66 20 |if texts|tyle of |
|000023c0| 63 63 20 63 6f 6e 74 61 | 69 6e 73 20 22 67 72 6f |cc conta|ins "gro|
|000023d0| 75 70 22 20 74 68 65 6e | 20 67 65 74 67 6c 6f 73 |up" then| getglos|
|000023e0| 73 61 72 79 20 63 74 0d | 65 6c 73 65 20 63 68 65 |sary ct.|else che|
|000023f0| 63 6b 56 6f 72 53 0d 65 | 78 69 74 20 6d 6f 75 73 |ckVorS.e|xit mous|
|00002400| 65 64 6f 77 6e 0d 65 6e | 64 20 69 66 0d 65 6e 64 |edown.en|d if.end|
|00002410| 20 69 66 0d 69 66 20 63 | 74 3d 22 22 20 74 68 65 | if.if c|t="" the|
|00002420| 6e 20 65 78 69 74 20 6d | 6f 75 73 65 64 6f 77 6e |n exit m|ousedown|
|00002430| 0d 67 65 74 20 70 6f 70 | 69 74 75 70 28 68 6f 6c |.get pop|itup(hol|
|00002440| 64 65 72 2c 34 2c 63 6c | 69 63 6b 68 28 29 2d 31 |der,4,cl|ickh()-1|
|00002450| 30 30 2c 63 6c 69 63 6b | 76 28 29 29 0d 67 65 74 |00,click|v()).get|
|00002460| 20 69 74 65 6d 20 31 20 | 6f 66 20 69 74 0d 69 66 | item 1 |of it.if|
|00002470| 20 69 74 3c 32 20 74 68 | 65 6e 20 65 78 69 74 20 | it<2 th|en exit |
|00002480| 6d 6f 75 73 65 64 6f 77 | 6e 0d 70 75 74 20 63 74 |mousedow|n.put ct|
|00002490| 20 69 6e 74 6f 20 74 68 | 65 74 65 78 74 0d 69 66 | into th|etext.if|
|000024a0| 20 69 74 3d 39 20 74 68 | 65 6e 0d 64 6f 43 53 54 | it=9 th|en.doCST|
|000024b0| 52 20 22 4f 6c 64 46 69 | 6e 64 43 53 54 52 22 0d |R "OldFi|ndCSTR".|
|000024c0| 65 78 69 74 20 6d 6f 75 | 73 65 64 6f 77 6e 0d 65 |exit mou|sedown.e|
|000024d0| 6e 64 20 69 66 0d 69 66 | 20 69 74 3d 38 20 74 68 |nd if.if| it=8 th|
|000024e0| 65 6e 0d 64 6f 66 69 6e | 64 0d 65 78 69 74 20 6d |en.dofin|d.exit m|
|000024f0| 6f 75 73 65 64 6f 77 6e | 0d 65 6e 64 20 69 66 0d |ousedown|.end if.|
|00002500| 69 66 20 69 74 b3 32 20 | 61 6e 64 20 69 74 b2 35 |if it.2 |and it.5|
|00002510| 20 20 74 68 65 6e 0d 69 | 66 20 63 74 ad 66 6c 64 | then.i|f ct.fld|
|00002520| 20 22 6c 61 73 74 74 65 | 78 74 22 20 74 68 65 6e | "lastte|xt" then|
|00002530| 0d 75 6e 6d 61 72 6b 20 | 61 6c 6c 20 63 64 73 0d |.unmark |all cds.|
|00002540| 6d 61 72 6b 20 63 64 73 | 20 62 79 20 66 69 6e 64 |mark cds| by find|
|00002550| 69 6e 67 20 77 68 6f 6c | 65 20 63 74 0d 65 6e 64 |ing whol|e ct.end|
|00002560| 20 69 66 0d 67 6f 20 28 | 69 74 65 6d 20 69 74 2d | if.go (|item it-|
|00002570| 31 20 6f 66 20 22 66 69 | 72 73 74 2c 70 72 65 76 |1 of "fi|rst,prev|
|00002580| 2c 6e 65 78 74 2c 6c 61 | 73 74 22 29 20 6d 61 72 |,next,la|st") mar|
|00002590| 6b 65 64 20 63 64 0d 65 | 6e 64 20 69 66 0d 69 66 |ked cd.e|nd if.if|
|000025a0| 20 69 74 3d 37 20 74 68 | 65 6e 0d 63 62 75 73 79 | it=7 th|en.cbusy|
|000025b0| 0d 70 75 74 20 47 65 74 | 46 69 6c 65 73 49 6e 44 |.put Get|FilesInD|
|000025c0| 69 72 28 67 65 74 53 46 | 50 61 74 68 28 29 2c 22 |ir(getSF|Path(),"|
|000025d0| 54 45 58 54 22 2c 72 65 | 74 75 72 6e 29 20 69 6e |TEXT",re|turn) in|
|000025e0| 74 6f 20 73 66 70 0d 70 | 75 74 20 22 20 22 26 74 |to sfp.p|ut " "&t|
|000025f0| 53 74 72 28 22 4c 69 62 | 4d 73 67 22 2c 34 29 20 |Str("Lib|Msg",4) |
|00002600| 69 6e 74 6f 20 46 49 43 | 0d 69 66 20 49 73 4f 6c |into FIC|.if IsOl|
|00002610| 64 46 69 6e 64 28 63 74 | 2c 73 66 70 29 20 74 68 |dFind(ct|,sfp) th|
|00002620| 65 6e 20 65 78 69 74 20 | 6d 6f 75 73 65 64 6f 77 |en exit |mousedow|
|00002630| 6e 0d 4c 52 20 74 72 75 | 65 0d 73 65 74 20 64 6f |n.LR tru|e.set do|
|00002640| 6e 74 73 65 61 72 63 68 | 20 6f 66 20 74 68 69 73 |ntsearch| of this|
|00002650| 20 62 67 20 74 6f 20 66 | 61 6c 73 65 0d 70 75 74 | bg to f|alse.put|
|00002660| 20 52 43 4e 28 29 20 69 | 6e 74 6f 20 66 69 72 73 | RCN() i|nto firs|
|00002670| 74 6e 61 6d 65 0d 75 6e | 6d 61 72 6b 20 61 6c 6c |tname.un|mark all|
|00002680| 20 63 64 73 0d 6d 61 72 | 6b 20 63 64 73 20 62 79 | cds.mar|k cds by|
|00002690| 20 66 69 6e 64 69 6e 67 | 20 77 68 6f 6c 65 20 74 | finding| whole t|
|000026a0| 68 65 54 65 78 74 0d 63 | 62 75 73 79 0d 4c 53 0d |heText.c|busy.LS.|
|000026b0| 4c 4d 20 74 72 75 65 0d | 67 6f 20 66 69 72 73 74 |LM true.|go first|
|000026c0| 20 6d 61 72 6b 65 64 20 | 63 64 0d 70 75 74 20 22 | marked |cd.put "|
|000026d0| 22 20 69 6e 74 6f 20 69 | 64 6c 69 73 74 0d 70 75 |" into i|dlist.pu|
|000026e0| 74 20 22 22 20 69 6e 74 | 6f 20 6e 61 6d 65 6c 69 |t "" int|o nameli|
|000026f0| 73 74 0d 70 75 74 20 6e | 75 6d 62 65 72 20 6f 66 |st.put n|umber of|
|00002700| 20 6d 61 72 6b 65 64 20 | 63 64 73 20 69 6e 74 6f | marked |cds into|
|00002710| 20 6d 63 74 0d 6f 70 65 | 6e 67 61 75 67 65 0d 70 | mct.ope|ngauge.p|
|00002720| 75 74 20 74 53 74 72 28 | 22 4c 69 62 4d 73 67 22 |ut tStr(|"LibMsg"|
|00002730| 2c 35 29 26 22 20 22 69 | 6e 74 6f 20 70 6e 0d 72 |,5)&" "i|nto pn.r|
|00002740| 65 70 65 61 74 20 75 6e | 74 69 6c 20 28 6d 6f 75 |epeat un|til (mou|
|00002750| 73 65 63 6c 69 63 6b 28 | 29 20 6f 72 20 6e 75 6d |seclick(|) or num|
|00002760| 62 65 72 20 6f 66 20 63 | 68 61 72 73 20 69 6e 20 |ber of c|hars in |
|00002770| 6e 61 6d 65 6c 69 73 74 | 3e 32 38 30 30 30 20 6f |namelist|>28000 o|
|00002780| 72 20 6e 75 6d 62 65 72 | 20 6f 66 20 63 68 61 72 |r number| of char|
|00002790| 73 20 69 6e 20 69 64 6c | 69 73 74 3e 32 38 30 30 |s in idl|ist>2800|
|000027a0| 30 29 0d 6e 65 78 74 62 | 75 73 79 0d 70 75 74 20 |0).nextb|usy.put |
|000027b0| 52 43 4e 28 29 20 69 6e | 74 6f 20 54 0d 66 69 6e |RCN() in|to T.fin|
|000027c0| 64 20 77 68 6f 6c 65 20 | 74 68 65 74 65 78 74 20 |d whole |thetext |
|000027d0| 6f 66 20 6d 61 72 6b 65 | 64 20 63 64 73 0d 69 66 |of marke|d cds.if|
|000027e0| 20 54 ad 52 43 4e 28 29 | 20 74 68 65 6e 20 73 75 | T.RCN()| then su|
|000027f0| 62 74 72 61 63 74 20 31 | 20 66 72 6f 6d 20 6d 63 |btract 1| from mc|
|00002800| 74 0d 70 75 74 20 66 6f | 75 6e 64 63 68 75 6e 6b |t.put fo|undchunk|
|00002810| 28 29 20 69 6e 74 6f 20 | 74 63 0d 70 75 74 20 52 |() into |tc.put R|
|00002820| 43 4e 28 29 20 26 22 2c | 22 26 74 63 20 69 6e 74 |CN() &",|"&tc int|
|00002830| 6f 20 74 68 69 73 69 64 | 0d 69 66 20 74 68 69 73 |o thisid|.if this|
|00002840| 69 64 3d 6c 69 6e 65 20 | 31 20 6f 66 20 69 64 6c |id=line |1 of idl|
|00002850| 69 73 74 20 74 68 65 6e | 20 65 78 69 74 20 72 65 |ist then| exit re|
|00002860| 70 65 61 74 0d 70 75 74 | 20 74 68 69 73 69 64 26 |peat.put| thisid&|
|00002870| 72 65 74 75 72 6e 20 61 | 66 74 65 72 20 69 64 6c |return a|fter idl|
|00002880| 69 73 74 0d 70 75 74 20 | 63 68 61 72 20 31 20 6f |ist.put |char 1 o|
|00002890| 66 20 77 6f 72 64 20 36 | 20 6f 66 20 74 63 20 69 |f word 6| of tc i|
|000028a0| 6e 74 6f 20 66 74 0d 70 | 75 74 20 77 6f 72 64 20 |nto ft.p|ut word |
|000028b0| 38 20 6f 66 20 74 63 20 | 69 6e 74 6f 20 66 6e 0d |8 of tc |into fn.|
|000028c0| 69 66 20 66 74 3d 22 62 | 22 20 74 68 65 6e 0d 70 |if ft="b|" then.p|
|000028d0| 75 74 20 63 68 61 72 28 | 6d 61 78 28 28 77 6f 72 |ut char(|max((wor|
|000028e0| 64 20 32 20 6f 66 20 74 | 63 2d 32 30 29 2c 31 29 |d 2 of t|c-20),1)|
|000028f0| 29 20 74 6f 20 28 6d 69 | 6e 28 28 77 6f 72 64 20 |) to (mi|n((word |
|00002900| 34 20 6f 66 20 74 63 2b | 32 30 29 2c 28 6e 75 6d |4 of tc+|20),(num|
|00002910| 62 65 72 20 6f 66 20 63 | 68 61 72 73 20 69 6e 20 |ber of c|hars in |
|00002920| 66 6c 64 20 66 6e 29 29 | 29 20 6f 66 20 66 6c 64 |fld fn))|) of fld|
|00002930| 20 66 6e 20 69 6e 74 6f | 20 74 6c 6e 0d 65 6e 64 | fn into| tln.end|
|00002940| 20 69 66 0d 69 66 20 66 | 74 3d 22 63 22 20 74 68 | if.if f|t="c" th|
|00002950| 65 6e 0d 70 75 74 20 63 | 68 61 72 28 6d 61 78 28 |en.put c|har(max(|
|00002960| 28 77 6f 72 64 20 32 20 | 6f 66 20 74 63 2d 32 30 |(word 2 |of tc-20|
|00002970| 29 2c 31 29 29 20 74 6f | 20 28 6d 69 6e 28 28 77 |),1)) to| (min((w|
|00002980| 6f 72 64 20 34 20 6f 66 | 20 74 63 2b 32 30 29 2c |ord 4 of| tc+20),|
|00002990| 28 6e 75 6d 62 65 72 20 | 6f 66 20 63 68 61 72 73 |(number |of chars|
|000029a0| 20 69 6e 20 63 64 20 66 | 6c 64 20 66 6e 29 29 29 | in cd f|ld fn)))|
|000029b0| 20 6f 66 20 63 64 20 66 | 6c 64 20 66 6e 20 69 6e | of cd f|ld fn in|
|000029c0| 74 6f 20 74 6c 6e 0d 65 | 6e 64 20 69 66 0d 69 66 |to tln.e|nd if.if|
|000029d0| 20 77 6f 72 64 20 31 20 | 6f 66 20 74 6c 6e 20 63 | word 1 |of tln c|
|000029e0| 6f 6e 74 61 69 6e 73 20 | 74 68 65 74 65 78 74 20 |ontains |thetext |
|000029f0| 74 68 65 6e 20 70 75 74 | 20 31 20 69 6e 74 6f 20 |then put| 1 into |
|00002a00| 73 77 0d 65 6c 73 65 20 | 70 75 74 20 32 20 69 6e |sw.else |put 2 in|
|00002a10| 74 6f 20 73 77 0d 69 66 | 20 69 74 65 6d 20 31 20 |to sw.if| item 1 |
|00002a20| 6f 66 20 6c 61 73 74 20 | 77 6f 72 64 20 6f 66 20 |of last |word of |
|00002a30| 74 6c 6e 20 63 6f 6e 74 | 61 69 6e 73 20 74 68 65 |tln cont|ains the|
|00002a40| 74 65 78 74 20 74 68 65 | 6e 20 70 75 74 20 6e 75 |text the|n put nu|
|00002a50| 6d 62 65 72 20 6f 66 20 | 77 6f 72 64 73 20 69 6e |mber of |words in|
|00002a60| 20 74 6c 6e 20 69 6e 74 | 6f 20 65 77 0d 65 6c 73 | tln int|o ew.els|
|00002a70| 65 20 70 75 74 20 28 6e | 75 6d 62 65 72 20 6f 66 |e put (n|umber of|
|00002a80| 20 77 6f 72 64 73 20 69 | 6e 20 74 6c 6e 2d 31 29 | words i|n tln-1)|
|00002a90| 20 69 6e 74 6f 20 65 77 | 0d 69 66 20 52 43 4e 28 | into ew|.if RCN(|
|00002aa0| 29 3d 66 69 72 73 74 6e | 61 6d 65 20 74 68 65 6e |)=firstn|ame then|
|00002ab0| 20 70 75 74 20 22 a5 22 | 20 69 6e 74 6f 20 53 53 | put "."| into SS|
|00002ac0| 20 65 6c 73 65 20 70 75 | 74 20 22 22 20 69 6e 74 | else pu|t "" int|
|00002ad0| 6f 20 53 53 0d 70 75 74 | 20 53 53 26 70 6e 26 28 |o SS.put| SS&pn&(|
|00002ae0| 28 43 4e 28 29 29 20 26 | 22 20 22 26 20 77 6f 72 |(CN()) &|" "& wor|
|00002af0| 64 20 73 77 20 74 6f 20 | 65 77 20 6f 66 20 74 6c |d sw to |ew of tl|
|00002b00| 6e 29 26 22 a6 22 20 61 | 66 74 65 72 20 6e 61 6d |n)&"." a|fter nam|
|00002b10| 65 6c 69 73 74 0d 64 6f | 47 61 75 67 65 0d 65 6e |elist.do|Gauge.en|
|00002b20| 64 20 72 65 70 65 61 74 | 0d 66 6f 75 6e 64 6d 65 |d repeat|.foundme|
|00002b30| 6e 75 0d 4c 4d 20 66 61 | 6c 73 65 0d 67 6f 20 63 |nu.LM fa|lse.go c|
|00002b40| 64 20 66 69 72 73 74 6e | 61 6d 65 0d 65 6e 64 20 |d firstn|ame.end |
|00002b50| 69 66 0d 69 66 20 69 74 | 3d 36 20 74 68 65 6e 0d |if.if it|=6 then.|
|00002b60| 63 62 75 73 79 0d 70 75 | 74 20 47 65 74 46 69 6c |cbusy.pu|t GetFil|
|00002b70| 65 73 49 6e 44 69 72 28 | 67 65 74 53 46 50 61 74 |esInDir(|getSFPat|
|00002b80| 68 28 29 2c 22 54 45 58 | 54 22 2c 72 65 74 75 72 |h(),"TEX|T",retur|
|00002b90| 6e 29 20 69 6e 74 6f 20 | 73 66 70 0d 70 75 74 20 |n) into |sfp.put |
|00002ba0| 22 20 22 26 74 53 74 72 | 28 22 4c 69 62 4d 73 67 |" "&tStr|("LibMsg|
|00002bb0| 22 2c 33 29 20 69 6e 74 | 6f 20 46 49 43 0d 69 66 |",3) int|o FIC.if|
|00002bc0| 20 28 49 73 4f 6c 64 46 | 69 6e 64 28 63 74 2c 73 | (IsOldF|ind(ct,s|
|00002bd0| 66 70 29 29 20 74 68 65 | 6e 20 65 78 69 74 20 6d |fp)) the|n exit m|
|00002be0| 6f 75 73 65 64 6f 77 6e | 0d 67 65 74 61 6c 6c 20 |ousedown|.getall |
|00002bf0| 22 77 68 6f 6c 65 22 0d | 65 6e 64 20 69 66 0d 4c |"whole".|end if.L|
|00002c00| 52 20 66 61 6c 73 65 0d | 69 66 20 74 68 65 72 65 |R false.|if there|
|00002c10| 20 69 73 20 61 20 66 6c | 64 20 22 6c 61 73 74 74 | is a fl|d "lastt|
|00002c20| 65 78 74 22 20 74 68 65 | 6e 20 70 75 74 20 74 68 |ext" the|n put th|
|00002c30| 65 74 65 78 74 20 69 6e | 74 6f 20 66 6c 64 20 22 |etext in|to fld "|
|00002c40| 6c 61 73 74 74 65 78 74 | 22 0d 76 69 73 20 22 77 |lasttext|".vis "w|
|00002c50| 69 6e 64 6f 77 20 67 61 | 75 67 65 22 2c 28 63 68 |indow ga|uge",(ch|
|00002c60| 65 63 6b 65 64 28 74 53 | 74 72 28 22 4c 69 62 4d |ecked(tS|tr("LibM|
|00002c70| 73 67 22 2c 34 33 29 29 | 20 61 6e 64 20 52 43 4e |sg",43))| and RCN|
|00002c80| 28 29 ad 31 29 0d 55 53 | 0d 67 65 74 20 65 6d 70 |().1).US|.get emp|
|00002c90| 74 79 0d 69 66 20 74 68 | 65 20 66 6f 75 6e 64 63 |ty.if th|e foundc|
|00002ca0| 68 75 6e 6b ad 65 6d 70 | 74 79 20 74 68 65 6e 20 |hunk.emp|ty then |
|00002cb0| 64 6f 20 22 67 65 74 22 | 26 26 74 68 65 20 66 6f |do "get"|&&the fo|
|00002cc0| 75 6e 64 63 68 75 6e 6b | 0d 69 66 20 69 74 ad 74 |undchunk|.if it.t|
|00002cd0| 68 65 74 65 78 74 20 74 | 68 65 6e 20 66 69 6e 64 |hetext t|hen find|
|00002ce0| 20 77 68 6f 6c 65 20 74 | 68 65 74 65 78 74 0d 70 | whole t|hetext.p|
|00002cf0| 75 74 20 66 6f 75 6e 64 | 63 68 75 6e 6b 28 29 20 |ut found|chunk() |
|00002d00| 69 6e 74 6f 20 66 63 0d | 73 68 66 20 66 63 0d 73 |into fc.|shf fc.s|
|00002d10| 65 6c 65 63 74 20 66 63 | 0d 65 6e 64 20 6d 6f 75 |elect fc|.end mou|
|00002d20| 73 65 64 6f 77 6e 0d 6f | 6e 20 63 68 65 63 6b 56 |sedown.o|n checkV|
|00002d30| 6f 72 53 0d 67 6c 6f 62 | 61 6c 20 74 63 74 2c 67 |orS.glob|al tct,g|
|00002d40| 41 6e 6e 6f 74 61 74 69 | 6f 6e 43 68 61 72 73 2c |Annotati|onChars,|
|00002d50| 67 43 75 72 4c 61 6e 67 | 0d 64 6f 20 22 67 65 74 |gCurLang|.do "get|
|00002d60| 22 26 26 20 6d 79 43 78 | 28 22 63 22 29 0d 70 75 |"&& myCx|("c").pu|
|00002d70| 74 20 28 74 65 78 74 66 | 6f 6e 74 20 6f 66 20 6d |t (textf|ont of m|
|00002d80| 79 43 78 28 22 63 22 29 | 20 3d 20 22 76 6f 79 61 |yCx("c")| = "voya|
|00002d90| 67 65 72 22 20 61 6e 64 | 20 74 68 65 20 6e 75 6d |ger" and| the num|
|00002da0| 62 65 72 20 6f 66 20 77 | 6f 72 64 73 20 69 6e 20 |ber of w|ords in |
|00002db0| 69 74 ad 30 29 20 69 6e | 74 6f 20 69 73 56 0d 70 |it.0) in|to isV.p|
|00002dc0| 75 74 20 43 68 61 72 49 | 6e 53 74 72 28 6c 61 73 |ut CharI|nStr(las|
|00002dd0| 74 20 63 68 61 72 20 6f | 66 20 69 74 2c 67 41 6e |t char o|f it,gAn|
|00002de0| 6e 6f 74 61 74 69 6f 6e | 43 68 61 72 73 29 20 69 |notation|Chars) i|
|00002df0| 6e 74 6f 20 69 73 53 79 | 6d 0d 69 66 20 69 73 53 |nto isSy|m.if isS|
|00002e00| 79 6d 20 6f 72 20 69 73 | 56 20 74 68 65 6e 0d 69 |ym or is|V then.i|
|00002e10| 66 20 69 73 53 79 6d 0d | 74 68 65 6e 0d 69 66 20 |f isSym.|then.if |
|00002e20| 74 68 65 72 65 20 69 73 | 20 61 20 63 64 20 66 6c |there is| a cd fl|
|00002e30| 64 20 69 74 0d 74 68 65 | 6e 0d 73 68 6f 77 20 63 |d it.the|n.show c|
|00002e40| 64 20 66 6c 64 20 69 74 | 0d 65 78 69 74 20 63 68 |d fld it|.exit ch|
|00002e50| 65 63 6b 56 6f 72 53 0d | 65 6e 64 20 69 66 0d 65 |eckVorS.|end if.e|
|00002e60| 6e 64 20 69 66 0d 69 66 | 20 69 73 56 20 74 68 65 |nd if.if| isV the|
|00002e70| 6e 20 67 65 74 67 6c 6f | 73 73 61 72 79 20 69 74 |n getglo|ssary it|
|00002e80| 0d 65 78 69 74 20 63 68 | 65 63 6b 56 6f 72 53 0d |.exit ch|eckVorS.|
|00002e90| 65 6e 64 20 69 66 0d 69 | 66 20 74 68 65 72 65 20 |end if.i|f there |
|00002ea0| 69 73 20 61 20 66 6c 64 | 20 22 63 68 61 72 61 63 |is a fld| "charac|
|00002eb0| 74 65 72 73 22 20 74 68 | 65 6e 0d 67 65 74 20 6c |ters" th|en.get l|
|00002ec0| 69 6e 65 20 67 43 75 72 | 4c 61 6e 67 20 6f 66 20 |ine gCur|Lang of |
|00002ed0| 67 65 74 73 74 72 28 22 | 49 6e 64 65 78 4e 61 6d |getstr("|IndexNam|
|00002ee0| 65 73 22 29 0d 69 66 20 | 69 74 20 69 73 20 6e 6f |es").if |it is no|
|00002ef0| 74 20 69 6e 20 66 6c 64 | 20 22 63 68 61 70 74 65 |t in fld| "chapte|
|00002f00| 72 20 6e 61 6d 65 22 20 | 61 6e 64 20 69 74 20 69 |r name" |and it i|
|00002f10| 73 20 6e 6f 74 20 69 6e | 20 66 6c 64 20 22 63 68 |s not in| fld "ch|
|00002f20| 61 72 61 63 74 65 72 73 | 22 20 74 68 65 6e 20 65 |aracters|" then e|
|00002f30| 78 69 74 20 63 68 65 63 | 6b 56 6f 72 53 0d 67 65 |xit chec|kVorS.ge|
|00002f40| 74 20 6d 79 43 78 28 22 | 74 22 29 0d 69 66 20 6c |t myCx("|t").if l|
|00002f50| 61 73 74 20 63 68 61 72 | 20 6f 66 20 69 74 3d 22 |ast char| of it="|
|00002f60| 6e 22 20 74 68 65 6e 20 | 64 65 6c 65 74 65 20 6c |n" then |delete l|
|00002f70| 61 73 74 20 63 68 61 72 | 20 6f 66 20 69 74 0d 69 |ast char| of it.i|
|00002f80| 66 20 69 74 20 69 73 20 | 61 20 6e 75 6d 62 65 72 |f it is |a number|
|00002f90| 20 61 6e 64 20 69 74 ad | 22 22 20 74 68 65 6e 20 | and it.|"" then |
|00002fa0| 67 6f 20 63 61 72 64 20 | 74 63 74 2b 69 74 0d 65 |go card |tct+it.e|
|00002fb0| 6e 64 20 69 66 0d 65 6e | 64 20 63 68 65 63 6b 56 |nd if.en|d checkV|
|00002fc0| 6f 72 53 0d 6f 6e 20 74 | 65 78 74 77 69 6e 64 6f |orS.on t|extwindo|
|00002fd0| 77 63 6c 69 63 6b 20 63 | 68 2c 6c 6e 2c 77 6e 0d |wclick c|h,ln,wn.|
|00002fe0| 67 6c 6f 62 61 6c 20 69 | 64 6c 69 73 74 2c 42 4e |global i|dlist,BN|
|00002ff0| 61 6d 65 0d 69 66 20 28 | 6c 6e 3e 30 29 20 74 68 |ame.if (|ln>0) th|
|00003000| 65 6e 0d 63 62 75 73 79 | 0d 67 65 74 20 61 6c 74 |en.cbusy|.get alt|
|00003010| 65 72 6e 61 74 65 54 65 | 78 74 20 6f 66 20 77 69 |ernateTe|xt of wi|
|00003020| 6e 64 6f 77 20 77 6e 0d | 70 75 74 20 6c 69 6e 65 |ndow wn.|put line|
|00003030| 20 33 20 6f 66 20 69 74 | 20 69 6e 74 6f 20 62 6e | 3 of it| into bn|
|00003040| 0d 69 66 20 62 6e ad 73 | 73 6e 28 29 20 74 68 65 |.if bn.s|sn() the|
|00003050| 6e 0d 4c 53 0d 67 6f 20 | 62 67 20 22 64 65 74 61 |n.LS.go |bg "deta|
|00003060| 69 6c 73 22 20 69 6e 20 | 73 74 61 63 6b 20 62 6e |ils" in |stack bn|
|00003070| 0d 70 75 74 20 62 6e 20 | 69 6e 74 6f 20 42 4e 61 |.put bn |into BNa|
|00003080| 6d 65 0d 65 6e 64 20 69 | 66 0d 63 62 75 73 79 0d |me.end i|f.cbusy.|
|00003090| 70 75 74 20 6c 69 6e 65 | 20 34 20 74 6f 20 28 6e |put line| 4 to (n|
|000030a0| 75 6d 4c 6e 73 28 69 74 | 29 29 20 6f 66 20 69 74 |umLns(it|)) of it|
|000030b0| 20 69 6e 74 6f 20 69 64 | 6c 69 73 74 0d 69 66 20 | into id|list.if |
|000030c0| 6e 6f 74 20 43 44 73 28 | 29 20 74 68 65 6e 0d 4c |not CDs(|) then.L|
|000030d0| 53 0d 67 6f 20 63 64 20 | 28 6c 69 6e 65 20 6c 6e |S.go cd |(line ln|
|000030e0| 20 6f 66 20 69 64 6c 69 | 73 74 29 0d 65 6e 64 20 | of idli|st).end |
|000030f0| 69 66 0d 70 75 74 20 6c | 69 6e 65 20 32 20 6f 66 |if.put l|ine 2 of|
|00003100| 20 69 74 20 69 6e 74 6f | 20 66 6c 64 20 22 74 68 | it into| fld "th|
|00003110| 65 74 65 78 74 22 0d 73 | 65 74 20 73 65 6c 65 63 |etext".s|et selec|
|00003120| 74 69 6f 6e 73 74 79 6c | 65 20 6f 66 20 77 69 6e |tionstyl|e of win|
|00003130| 64 6f 77 20 77 6e 20 74 | 6f 20 22 62 6f 6c 64 22 |dow wn t|o "bold"|
|00003140| 0d 69 66 20 28 28 77 6e | 20 63 6f 6e 74 61 69 6e |.if ((wn| contain|
|00003150| 73 20 28 22 20 22 26 74 | 53 74 72 28 22 4c 69 62 |s (" "&t|Str("Lib|
|00003160| 4d 73 67 22 2c 33 29 26 | 22 20 2d 20 22 29 29 20 |Msg",3)&|" - ")) |
|00003170| 6f 72 20 28 77 6e 20 63 | 6f 6e 74 61 69 6e 73 20 |or (wn c|ontains |
|00003180| 28 22 20 22 26 74 53 74 | 72 28 22 4c 69 62 4d 73 |(" "&tSt|r("LibMs|
|00003190| 67 22 2c 34 29 26 22 20 | 2d 20 22 29 29 29 0d 74 |g",4)&" |- "))).t|
|000031a0| 68 65 6e 20 66 69 6e 64 | 69 74 20 6c 6e 2c 22 77 |hen find|it ln,"w|
|000031b0| 68 6f 6c 65 22 0d 65 6c | 73 65 20 66 69 6e 64 69 |hole".el|se findi|
|000031c0| 74 20 6c 6e 2c 22 22 0d | 65 6e 64 20 69 66 0d 65 |t ln,"".|end if.e|
|000031d0| 6e 64 20 74 65 78 74 77 | 69 6e 64 6f 77 63 6c 69 |nd textw|indowcli|
|000031e0| 63 6b 0d 6f 6e 20 63 6c | 69 70 73 20 57 0d 4c 53 |ck.on cl|ips W.LS|
|000031f0| 0d 72 65 70 65 61 74 20 | 77 69 74 68 20 61 3d 37 |.repeat |with a=7|
|00003200| 30 20 74 6f 20 37 33 0d | 76 69 73 20 22 62 67 20 |0 to 73.|vis "bg |
|00003210| 62 74 6e 20 69 64 22 26 | 26 61 2c 57 0d 65 6e 64 |btn id"&|&a,W.end|
|00003220| 20 72 65 70 65 61 74 0d | 55 53 0d 65 6e 64 20 63 | repeat.|US.end c|
|00003230| 6c 69 70 73 0d 6f 6e 20 | 4c 53 0d 6c 6f 63 6b 20 |lips.on |LS.lock |
|00003240| 73 63 72 65 65 6e 0d 65 | 6e 64 20 4c 53 0d 6f 6e |screen.e|nd LS.on|
|00003250| 20 55 53 0d 75 6e 6c 6f | 63 6b 20 73 63 72 65 65 | US.unlo|ck scree|
|00003260| 6e 0d 65 6e 64 20 55 53 | 0d 6f 6e 20 63 6f 6d 6d |n.end US|.on comm|
|00003270| 61 6e 64 6b 65 79 64 6f | 77 6e 20 57 0d 69 66 20 |andkeydo|wn W.if |
|00003280| 57 3d 22 2f 22 20 74 68 | 65 6e 20 74 6f 63 61 72 |W="/" th|en tocar|
|00003290| 64 20 45 42 68 65 6c 70 | 0d 65 6c 73 65 20 69 66 |d EBhelp|.else if|
|000032a0| 20 57 3d 73 70 61 63 65 | 20 74 68 65 6e 20 46 4d | W=space| then FM|
|000032b0| 42 61 72 0d 65 6c 73 65 | 20 70 61 73 73 20 63 6f |Bar.else| pass co|
|000032c0| 6d 6d 61 6e 64 6b 65 79 | 64 6f 77 6e 0d 65 6e 64 |mmandkey|down.end|
|000032d0| 20 63 6f 6d 6d 61 6e 64 | 6b 65 79 64 6f 77 6e 0d | command|keydown.|
|000032e0| 6f 6e 20 4c 4d 20 57 0d | 73 65 74 20 6c 6f 63 6b |on LM W.|set lock|
|000032f0| 6d 65 73 73 61 67 65 73 | 20 74 6f 20 57 0d 65 6e |messages| to W.en|
|00003300| 64 20 4c 4d 0d 6f 6e 20 | 4c 52 20 57 0d 73 65 74 |d LM.on |LR W.set|
|00003310| 20 6c 6f 63 6b 72 65 63 | 65 6e 74 20 74 6f 20 57 | lockrec|ent to W|
|00003320| 0d 65 6e 64 20 4c 52 0d | 6f 6e 20 64 6f 47 61 75 |.end LR.|on doGau|
|00003330| 67 65 0d 73 65 74 20 73 | 63 72 6f 6c 6c 20 6f 66 |ge.set s|croll of|
|00003340| 20 77 69 6e 64 6f 77 20 | 22 67 61 75 67 65 22 20 | window |"gauge" |
|00003350| 74 6f 20 67 53 63 72 6c | 28 29 0d 73 68 6f 77 20 |to gScrl|().show |
|00003360| 77 69 6e 64 6f 77 20 22 | 67 61 75 67 65 22 0d 65 |window "|gauge".e|
|00003370| 6e 64 20 64 6f 47 61 75 | 67 65 0d 6f 6e 20 61 72 |nd doGau|ge.on ar|
|00003380| 72 6f 77 6b 65 79 20 57 | 0d 69 66 20 57 3d 22 72 |rowkey W|.if W="r|
|00003390| 69 67 68 74 22 20 6f 72 | 20 57 3d 22 64 6f 77 6e |ight" or| W="down|
|000033a0| 22 20 74 68 65 6e 20 67 | 6f 6e 65 78 74 0d 69 66 |" then g|onext.if|
|000033b0| 20 57 3d 22 6c 65 66 74 | 22 20 6f 72 20 57 3d 22 | W="left|" or W="|
|000033c0| 75 70 22 20 74 68 65 6e | 20 67 6f 70 72 65 76 0d |up" then| goprev.|
|000033d0| 65 6e 64 20 61 72 72 6f | 77 6b 65 79 0d 66 75 6e |end arro|wkey.fun|
|000033e0| 63 74 69 6f 6e 20 6f 66 | 66 73 65 74 52 20 72 0d |ction of|fsetR r.|
|000033f0| 67 65 74 20 74 6f 70 20 | 6f 66 20 63 64 20 77 69 |get top |of cd wi|
|00003400| 6e 64 6f 77 0d 61 64 64 | 20 69 74 20 74 6f 20 69 |ndow.add| it to i|
|00003410| 74 65 6d 20 32 20 6f 66 | 20 72 0d 61 64 64 20 69 |tem 2 of| r.add i|
|00003420| 74 20 74 6f 20 69 74 65 | 6d 20 34 20 6f 66 20 72 |t to ite|m 4 of r|
|00003430| 0d 67 65 74 20 6c 65 66 | 74 20 6f 66 20 63 64 20 |.get lef|t of cd |
|00003440| 77 69 6e 64 6f 77 0d 61 | 64 64 20 69 74 20 74 6f |window.a|dd it to|
|00003450| 20 69 74 65 6d 20 31 20 | 6f 66 20 72 0d 61 64 64 | item 1 |of r.add|
|00003460| 20 69 74 20 74 6f 20 69 | 74 65 6d 20 33 20 6f 66 | it to i|tem 3 of|
|00003470| 20 72 0d 72 65 74 75 72 | 6e 20 72 0d 65 6e 64 20 | r.retur|n r.end |
|00003480| 6f 66 66 73 65 74 52 0d | 66 75 6e 63 74 69 6f 6e |offsetR.|function|
|00003490| 20 57 69 6e 53 70 61 63 | 65 20 70 2c 74 0d 69 66 | WinSpac|e p,t.if|
|000034a0| 20 74 3d 22 52 22 20 74 | 68 65 6e 20 72 65 74 75 | t="R" t|hen retu|
|000034b0| 72 6e 20 28 31 30 30 30 | 30 30 3c 68 65 61 70 73 |rn (1000|00<heaps|
|000034c0| 70 61 63 65 28 29 29 0d | 65 6c 73 65 20 72 65 74 |pace()).|else ret|
|000034d0| 75 72 6e 20 28 28 67 65 | 74 46 69 6c 65 53 69 7a |urn ((ge|tFileSiz|
|000034e0| 65 28 70 29 2b 31 30 30 | 30 30 30 29 3c 68 65 61 |e(p)+100|000)<hea|
|000034f0| 70 73 70 61 63 65 28 29 | 29 0d 65 6e 64 20 57 69 |pspace()|).end Wi|
|00003500| 6e 53 70 61 63 65 0d 6f | 6e 20 72 65 73 75 6d 65 |nSpace.o|n resume|
|00003510| 73 74 61 63 6b 0d 69 66 | 20 28 6e 6f 74 20 6e 65 |stack.if| (not ne|
|00003520| 65 64 73 4c 69 62 28 29 | 29 20 61 6e 64 20 28 73 |edsLib()|) and (s|
|00003530| 73 6e 28 29 ad 22 54 68 | 65 20 4c 69 62 72 61 72 |sn()."Th|e Librar|
|00003540| 79 22 29 20 74 68 65 6e | 20 6c 61 73 74 67 73 70 |y") then| lastgsp|
|00003550| 0d 70 61 73 73 20 72 65 | 73 75 6d 65 73 74 61 63 |.pass re|sumestac|
|00003560| 6b 0d 65 6e 64 20 72 65 | 73 75 6d 65 73 74 61 63 |k.end re|sumestac|
|00003570| 6b 0d 6f 6e 20 63 68 65 | 63 6b 20 57 2c 78 0d 73 |k.on che|ck W,x.s|
|00003580| 65 74 20 63 68 65 63 6b | 6d 61 72 6b 20 6f 66 20 |et check|mark of |
|00003590| 6d 65 6e 75 69 74 65 6d | 20 57 20 6f 66 20 6d 65 |menuitem| W of me|
|000035a0| 6e 75 20 74 53 74 72 28 | 22 4c 69 62 4d 73 67 22 |nu tStr(|"LibMsg"|
|000035b0| 2c 34 30 29 20 74 6f 20 | 78 0d 65 6e 64 20 63 68 |,40) to |x.end ch|
|000035c0| 65 63 6b 0d 6f 6e 20 63 | 6f 6e 74 72 6f 6c 73 20 |eck.on c|ontrols |
|000035d0| 57 0d 6f 70 65 6e 63 6f | 6e 74 72 6f 6c 73 0d 65 |W.openco|ntrols.e|
|000035e0| 6e 64 20 63 6f 6e 74 72 | 6f 6c 73 0d 66 75 6e 63 |nd contr|ols.func|
|000035f0| 74 69 6f 6e 20 4e 42 0d | 67 6c 6f 62 61 6c 20 67 |tion NB.|global g|
|00003600| 4e 42 53 4e 0d 72 65 74 | 75 72 6e 20 73 73 6e 28 |NBSN.ret|urn ssn(|
|00003610| 29 3d 67 4e 42 53 4e 0d | 65 6e 64 20 4e 42 0d 6f |)=gNBSN.|end NB.o|
|00003620| 6e 20 61 66 69 6e 64 20 | 74 68 61 74 0d 67 6c 6f |n afind |that.glo|
|00003630| 62 61 6c 20 74 68 65 74 | 65 78 74 0d 69 66 20 4e |bal thet|ext.if N|
|00003640| 42 28 29 20 74 68 65 6e | 20 65 78 69 74 20 61 66 |B() then| exit af|
|00003650| 69 6e 64 0d 69 66 20 74 | 68 65 72 65 20 69 73 20 |ind.if t|here is |
|00003660| 61 20 66 6c 64 20 22 6c | 61 73 74 74 65 78 74 22 |a fld "l|asttext"|
|00003670| 20 74 68 65 6e 20 70 75 | 74 20 66 6c 64 20 22 6c | then pu|t fld "l|
|00003680| 61 73 74 74 65 78 74 22 | 20 69 6e 74 6f 20 74 68 |asttext"| into th|
|00003690| 65 74 65 78 74 0d 67 6f | 20 74 68 61 74 20 6d 61 |etext.go| that ma|
|000036a0| 72 6b 65 64 20 63 64 0d | 69 66 20 74 68 65 74 65 |rked cd.|if thete|
|000036b0| 78 74 20 3d 20 22 22 20 | 74 68 65 6e 20 65 78 69 |xt = "" |then exi|
|000036c0| 74 20 61 66 69 6e 64 0d | 55 53 0d 69 66 20 74 68 |t afind.|US.if th|
|000036d0| 65 20 73 65 6c 65 63 74 | 65 64 63 68 75 6e 6b ad |e select|edchunk.|
|000036e0| 65 6d 70 74 79 20 74 68 | 65 6e 20 73 65 6c 65 63 |empty th|en selec|
|000036f0| 74 20 65 6d 70 74 79 0d | 66 69 6e 64 20 77 6f 72 |t empty.|find wor|
|00003700| 64 20 31 20 6f 66 20 74 | 68 65 74 65 78 74 0d 70 |d 1 of t|hetext.p|
|00003710| 75 74 20 66 6f 75 6e 64 | 63 68 75 6e 6b 28 29 20 |ut found|chunk() |
|00003720| 69 6e 74 6f 20 66 63 0d | 73 68 66 20 66 63 0d 73 |into fc.|shf fc.s|
|00003730| 65 6c 65 63 74 20 66 63 | 0d 65 6e 64 20 61 66 69 |elect fc|.end afi|
|00003740| 6e 64 0d 6f 6e 20 67 65 | 74 76 61 6c 75 65 73 0d |nd.on ge|tvalues.|
|00003750| 67 6c 6f 62 61 6c 20 48 | 2c 54 0d 70 75 74 20 6e |global H|,T.put n|
|00003760| 75 6d 4c 6e 73 28 66 6c | 64 20 22 6d 61 72 6b 65 |umLns(fl|d "marke|
|00003770| 64 20 63 61 72 64 73 22 | 29 20 69 6e 74 6f 20 48 |d cards"|) into H|
|00003780| 0d 70 75 74 20 43 4e 28 | 29 20 69 6e 74 6f 20 54 |.put CN(|) into T|
|00003790| 0d 65 6e 64 20 67 65 74 | 76 61 6c 75 65 73 0d 66 |.end get|values.f|
|000037a0| 75 6e 63 74 69 6f 6e 20 | 4e 65 65 64 73 4c 69 62 |unction |NeedsLib|
|000037b0| 0d 67 6c 6f 62 61 6c 20 | 4e 4c 4c 69 73 74 0d 70 |.global |NLList.p|
|000037c0| 75 74 20 66 61 6c 73 65 | 20 69 6e 74 6f 20 62 0d |ut false| into b.|
|000037d0| 67 65 74 20 73 73 6e 28 | 29 0d 72 65 70 65 61 74 |get ssn(|).repeat|
|000037e0| 20 77 69 74 68 20 78 3d | 31 20 74 6f 20 6e 75 6d | with x=|1 to num|
|000037f0| 4c 6e 73 28 4e 4c 4c 69 | 73 74 29 0d 69 66 20 69 |Lns(NLLi|st).if i|
|00003800| 74 3d 6c 69 6e 65 20 78 | 20 6f 66 20 4e 4c 4c 69 |t=line x| of NLLi|
|00003810| 73 74 20 74 68 65 6e 0d | 70 75 74 20 74 72 75 65 |st then.|put true|
|00003820| 20 69 6e 74 6f 20 62 0d | 65 78 69 74 20 72 65 70 | into b.|exit rep|
|00003830| 65 61 74 0d 65 6e 64 20 | 69 66 0d 65 6e 64 20 72 |eat.end |if.end r|
|00003840| 65 70 65 61 74 0d 72 65 | 74 75 72 6e 20 62 0d 65 |epeat.re|turn b.e|
|00003850| 6e 64 20 4e 65 65 64 73 | 4c 69 62 0d 6f 6e 20 63 |nd Needs|Lib.on c|
|00003860| 6c 6f 73 65 45 57 69 6e | 0d 67 6c 6f 62 61 6c 20 |loseEWin|.global |
|00003870| 45 42 57 69 6e 0d 72 65 | 70 65 61 74 20 77 69 74 |EBWin.re|peat wit|
|00003880| 68 20 78 3d 31 20 74 6f | 20 6e 75 6d 4c 6e 73 28 |h x=1 to| numLns(|
|00003890| 45 42 57 69 6e 29 0d 67 | 65 74 20 6c 69 6e 65 20 |EBWin).g|et line |
|000038a0| 78 20 6f 66 20 45 42 57 | 69 6e 0d 69 66 20 74 68 |x of EBW|in.if th|
|000038b0| 65 72 65 20 69 73 20 61 | 20 77 69 6e 64 6f 77 20 |ere is a| window |
|000038c0| 69 74 20 74 68 65 6e 20 | 63 6c 6f 73 65 20 77 69 |it then |close wi|
|000038d0| 6e 64 6f 77 20 69 74 0d | 65 6e 64 20 72 65 70 65 |ndow it.|end repe|
|000038e0| 61 74 0d 70 75 74 20 22 | 22 20 69 6e 74 6f 20 45 |at.put "|" into E|
|000038f0| 42 57 69 6e 0d 65 6e 64 | 20 63 6c 6f 73 65 45 57 |BWin.end| closeEW|
|00003900| 69 6e 0d 66 75 6e 63 74 | 69 6f 6e 20 42 6f 6f 6b |in.funct|ion Book|
|00003910| 4d 65 6e 75 4c 69 73 74 | 0d 67 6c 6f 62 61 6c 20 |MenuList|.global |
|00003920| 62 6f 6f 6b 73 0d 72 65 | 74 75 72 6e 20 62 6f 6f |books.re|turn boo|
|00003930| 6b 73 0d 65 6e 64 20 42 | 6f 6f 6b 4d 65 6e 75 4c |ks.end B|ookMenuL|
|00003940| 69 73 74 0d 66 75 6e 63 | 74 69 6f 6e 20 42 6f 6f |ist.func|tion Boo|
|00003950| 6b 4c 69 73 74 4d 73 67 | 0d 67 65 74 20 42 6f 6f |kListMsg|.get Boo|
|00003960| 6b 4d 65 6e 75 4c 69 73 | 74 28 29 0d 72 65 70 65 |kMenuLis|t().repe|
|00003970| 61 74 20 77 69 74 68 20 | 78 3d 31 20 74 6f 20 6e |at with |x=1 to n|
|00003980| 75 6d 4c 6e 73 28 69 74 | 29 0d 70 75 74 20 22 67 |umLns(it|).put "g|
|00003990| 6f 20 73 74 61 63 6b 22 | 26 26 71 75 6f 74 65 26 |o stack"|&&quote&|
|000039a0| 6c 69 6e 65 20 78 20 6f | 66 20 69 74 26 71 75 6f |line x o|f it&quo|
|000039b0| 74 65 20 69 6e 74 6f 20 | 6c 69 6e 65 20 78 20 6f |te into |line x o|
|000039c0| 66 20 69 74 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |f it.end| repeat.|
|000039d0| 72 65 74 75 72 6e 20 69 | 74 0d 65 6e 64 20 42 6f |return i|t.end Bo|
|000039e0| 6f 6b 4c 69 73 74 4d 73 | 67 0d 66 75 6e 63 74 69 |okListMs|g.functi|
|000039f0| 6f 6e 20 42 4d 49 74 65 | 6d 73 0d 67 65 74 20 74 |on BMIte|ms.get t|
|00003a00| 53 74 72 28 22 4c 69 62 | 4d 73 67 22 2c 36 33 29 |Str("Lib|Msg",63)|
|00003a10| 26 72 65 74 75 72 6e 26 | 42 6f 6f 6b 4d 65 6e 75 |&return&|BookMenu|
|00003a20| 4c 69 73 74 28 29 0d 72 | 65 74 75 72 6e 20 69 74 |List().r|eturn it|
|00003a30| 0d 65 6e 64 20 42 4d 49 | 74 65 6d 73 0d 66 75 6e |.end BMI|tems.fun|
|00003a40| 63 74 69 6f 6e 20 42 4d | 4d 73 67 73 0d 67 65 74 |ction BM|Msgs.get|
|00003a50| 20 67 65 74 73 74 72 28 | 22 62 6d 6d 73 67 73 73 | getstr(|"bmmsgss|
|00003a60| 74 72 22 29 26 72 65 74 | 75 72 6e 26 42 6f 6f 6b |tr")&ret|urn&Book|
|00003a70| 4c 69 73 74 4d 73 67 28 | 29 0d 72 65 74 75 72 6e |ListMsg(|).return|
|00003a80| 20 69 74 0d 65 6e 64 20 | 42 4d 4d 73 67 73 0d 66 | it.end |BMMsgs.f|
|00003a90| 75 6e 63 74 69 6f 6e 20 | 67 65 74 53 74 61 63 6b |unction |getStack|
|00003aa0| 50 61 74 68 0d 70 75 74 | 20 74 68 65 20 69 74 65 |Path.put| the ite|
|00003ab0| 6d 64 65 6c 69 6d 69 74 | 65 72 20 69 6e 74 6f 20 |mdelimit|er into |
|00003ac0| 69 64 0d 73 65 74 20 69 | 74 65 6d 64 65 6c 69 6d |id.set i|temdelim|
|00003ad0| 69 74 65 72 20 74 6f 20 | 71 75 6f 74 65 0d 67 65 |iter to |quote.ge|
|00003ae0| 74 20 69 74 65 6d 20 32 | 20 74 6f 20 39 39 20 6f |t item 2| to 99 o|
|00003af0| 66 20 6c 6f 6e 67 20 6e | 61 6d 65 20 6f 66 20 74 |f long n|ame of t|
|00003b00| 68 69 73 20 73 74 61 63 | 6b 0d 73 65 74 20 69 74 |his stac|k.set it|
|00003b10| 65 6d 64 65 6c 69 6d 69 | 74 65 72 20 74 6f 20 22 |emdelimi|ter to "|
|00003b20| 3a 22 0d 70 75 74 20 22 | 22 20 69 6e 74 6f 20 6c |:".put "|" into l|
|00003b30| 61 73 74 20 69 74 65 6d | 20 6f 66 20 69 74 0d 73 |ast item| of it.s|
|00003b40| 65 74 20 74 68 65 20 69 | 74 65 6d 64 65 6c 69 6d |et the i|temdelim|
|00003b50| 69 74 65 72 20 74 6f 20 | 69 64 0d 72 65 74 75 72 |iter to |id.retur|
|00003b60| 6e 20 69 74 0d 65 6e 64 | 20 67 65 74 53 74 61 63 |n it.end| getStac|
|00003b70| 6b 50 61 74 68 0d 66 75 | 6e 63 74 69 6f 6e 20 67 |kPath.fu|nction g|
|00003b80| 65 74 53 46 50 61 74 68 | 0d 67 65 74 20 63 68 61 |etSFPath|.get cha|
|00003b90| 72 20 31 20 74 6f 20 33 | 31 20 6f 66 20 28 73 73 |r 1 to 3|1 of (ss|
|00003ba0| 6e 28 29 26 26 74 53 74 | 72 28 22 4c 69 62 4d 73 |n()&&tSt|r("LibMs|
|00003bb0| 67 22 2c 37 29 29 0d 72 | 65 74 75 72 6e 20 67 65 |g",7)).r|eturn ge|
|00003bc0| 74 53 74 61 63 6b 50 61 | 74 68 28 29 26 69 74 26 |tStackPa|th()&it&|
|00003bd0| 22 3a 22 0d 65 6e 64 20 | 67 65 74 53 46 50 61 74 |":".end |getSFPat|
|00003be0| 68 0d 66 75 6e 63 74 69 | 6f 6e 20 67 65 74 41 6c |h.functi|on getAl|
|00003bf0| 65 72 74 4d 73 67 20 74 | 0d 72 65 74 75 72 6e 20 |ertMsg t|.return |
|00003c00| 74 53 74 72 28 22 4c 69 | 62 4d 73 67 22 2c 38 29 |tStr("Li|bMsg",8)|
|00003c10| 26 26 71 75 6f 74 65 26 | 74 26 71 75 6f 74 65 26 |&&quote&|t&quote&|
|00003c20| 22 3f 22 0d 65 6e 64 20 | 67 65 74 41 6c 65 72 74 |"?".end |getAlert|
|00003c30| 4d 73 67 0d 6f 6e 20 66 | 69 6e 69 73 68 77 69 6e |Msg.on f|inishwin|
|00003c40| 64 6f 77 20 77 6e 0d 67 | 6c 6f 62 61 6c 20 67 54 |dow wn.g|lobal gT|
|00003c50| 69 6c 65 0d 69 66 20 67 | 54 69 6c 65 3d 22 22 20 |ile.if g|Tile="" |
|00003c60| 74 68 65 6e 20 70 75 74 | 20 32 30 30 20 69 6e 74 |then put| 200 int|
|00003c70| 6f 20 67 54 69 6c 65 0d | 70 75 74 20 74 69 74 6c |o gTile.|put titl|
|00003c80| 65 57 69 64 74 68 20 6f | 66 20 77 69 6e 64 6f 77 |eWidth o|f window|
|00003c90| 20 77 6e 20 69 6e 74 6f | 20 74 77 0d 70 75 74 20 | wn into| tw.put |
|00003ca0| 6d 61 78 4c 69 6e 65 57 | 69 64 74 68 20 6f 66 20 |maxLineW|idth of |
|00003cb0| 77 69 6e 64 6f 77 20 77 | 6e 20 69 6e 74 6f 20 6c |window w|n into l|
|00003cc0| 77 0d 69 66 20 74 77 3e | 6c 77 20 74 68 65 6e 20 |w.if tw>|lw then |
|00003cd0| 70 75 74 20 74 77 2b 34 | 30 20 69 6e 74 6f 20 74 |put tw+4|0 into t|
|00003ce0| 0d 65 6c 73 65 20 70 75 | 74 20 6c 77 2b 32 30 20 |.else pu|t lw+20 |
|00003cf0| 69 6e 74 6f 20 74 0d 73 | 65 74 20 74 65 78 74 77 |into t.s|et textw|
|00003d00| 69 64 74 68 20 6f 66 20 | 77 69 6e 64 6f 77 20 77 |idth of |window w|
|00003d10| 6e 20 74 6f 20 6c 77 0d | 67 65 74 20 74 6f 70 20 |n to lw.|get top |
|00003d20| 6f 66 20 63 64 20 77 69 | 6e 64 6f 77 0d 70 75 74 |of cd wi|ndow.put|
|00003d30| 20 72 69 67 68 74 20 6f | 66 20 63 64 20 77 69 6e | right o|f cd win|
|00003d40| 64 6f 77 2d 35 20 69 6e | 74 6f 20 72 74 0d 73 65 |dow-5 in|to rt.se|
|00003d50| 74 20 72 65 63 74 20 6f | 66 20 77 69 6e 64 6f 77 |t rect o|f window|
|00003d60| 20 77 6e 20 74 6f 20 28 | 72 74 2d 74 26 22 2c 22 | wn to (|rt-t&","|
|00003d70| 26 69 74 2b 67 54 69 6c | 65 26 22 2c 22 26 72 74 |&it+gTil|e&","&rt|
|00003d80| 26 22 2c 22 26 31 30 30 | 2b 67 54 69 6c 65 2b 69 |&","&100|+gTile+i|
|00003d90| 74 29 0d 61 64 64 20 31 | 32 20 74 6f 20 67 54 69 |t).add 1|2 to gTi|
|00003da0| 6c 65 0d 69 66 20 67 54 | 69 6c 65 3e 33 30 30 20 |le.if gT|ile>300 |
|00003db0| 74 68 65 6e 20 70 75 74 | 20 32 30 30 20 69 6e 74 |then put| 200 int|
|00003dc0| 6f 20 67 54 69 6c 65 0d | 73 65 74 20 6c 69 6e 65 |o gTile.|set line|
|00003dd0| 68 65 69 67 68 74 20 6f | 66 20 77 69 6e 64 6f 77 |height o|f window|
|00003de0| 20 77 6e 20 74 6f 20 31 | 34 0d 73 65 74 20 76 69 | wn to 1|4.set vi|
|00003df0| 73 69 62 6c 65 20 6f 66 | 20 77 69 6e 64 6f 77 20 |sible of| window |
|00003e00| 77 6e 20 74 6f 20 74 72 | 75 65 0d 73 65 6e 64 20 |wn to tr|ue.send |
|00003e10| 65 6e 64 45 64 69 74 20 | 74 6f 20 77 69 6e 64 6f |endEdit |to windo|
|00003e20| 77 20 77 6e 0d 65 6e 64 | 20 66 69 6e 69 73 68 77 |w wn.end| finishw|
|00003e30| 69 6e 64 6f 77 0d 6f 6e | 20 54 57 4f 6c 64 46 69 |indow.on| TWOldFi|
|00003e40| 6e 64 20 77 6e 0d 67 6c | 6f 62 61 6c 20 74 68 65 |nd wn.gl|obal the|
|00003e50| 74 65 78 74 2c 42 6e 61 | 6d 65 0d 70 75 74 20 73 |text,Bna|me.put s|
|00003e60| 73 6e 28 29 20 69 6e 74 | 6f 20 42 6e 61 6d 65 0d |sn() int|o Bname.|
|00003e70| 67 65 74 20 67 65 74 53 | 46 50 61 74 68 28 29 26 |get getS|FPath()&|
|00003e80| 77 6e 0d 6d 61 78 6d 65 | 6d 0d 69 66 20 6e 6f 74 |wn.maxme|m.if not|
|00003e90| 20 57 69 6e 53 70 61 63 | 65 28 69 74 2c 22 22 29 | WinSpac|e(it,"")|
|00003ea0| 0d 74 68 65 6e 0d 6c 6f | 6d 65 6d 20 77 6e 0d 65 |.then.lo|mem wn.e|
|00003eb0| 78 69 74 20 54 57 4f 6c | 64 46 69 6e 64 0d 65 6e |xit TWOl|dFind.en|
|00003ec0| 64 20 69 66 0d 63 62 75 | 73 79 0d 74 65 78 74 78 |d if.cbu|sy.textx|
|00003ed0| 77 69 6e 64 6f 77 20 33 | 32 30 35 31 2c 77 6e 0d |window 3|2051,wn.|
|00003ee0| 69 66 20 74 68 65 72 65 | 20 69 73 20 6e 6f 74 20 |if there| is not |
|00003ef0| 61 20 77 69 6e 64 6f 77 | 20 77 6e 0d 74 68 65 6e |a window| wn.then|
|00003f00| 0d 6c 6f 6d 65 6d 20 77 | 6e 0d 65 78 69 74 20 54 |.lomem w|n.exit T|
|00003f10| 57 4f 6c 64 46 69 6e 64 | 0d 65 6e 64 20 69 66 0d |WOldFind|.end if.|
|00003f20| 73 65 74 20 6e 65 76 65 | 72 77 72 61 70 20 6f 66 |set neve|rwrap of|
|00003f30| 20 77 69 6e 64 6f 77 20 | 77 6e 20 74 6f 20 74 72 | window |wn to tr|
|00003f40| 75 65 0d 73 65 74 20 73 | 61 76 65 46 69 6c 65 4e |ue.set s|aveFileN|
|00003f50| 61 6d 65 20 6f 66 20 77 | 69 6e 64 6f 77 20 77 6e |ame of w|indow wn|
|00003f60| 20 74 6f 20 69 74 0d 67 | 65 74 20 67 65 74 41 6c | to it.g|et getAl|
|00003f70| 65 72 74 4d 73 67 28 77 | 6e 29 0d 63 62 75 73 79 |ertMsg(w|n).cbusy|
|00003f80| 0d 73 65 74 20 73 61 76 | 65 41 6c 65 72 74 4d 65 |.set sav|eAlertMe|
|00003f90| 73 73 61 67 65 20 6f 66 | 20 77 69 6e 64 6f 77 20 |ssage of| window |
|00003fa0| 77 6e 20 74 6f 20 69 74 | 0d 73 65 74 20 73 61 76 |wn to it|.set sav|
|00003fb0| 65 41 6c 65 72 74 49 44 | 20 6f 66 20 77 69 6e 64 |eAlertID| of wind|
|00003fc0| 6f 77 20 77 6e 20 74 6f | 20 47 65 74 44 6c 67 49 |ow wn to| GetDlgI|
|00003fd0| 44 28 33 32 38 29 0d 73 | 65 6e 64 20 72 65 61 64 |D(328).s|end read|
|00003fe0| 53 61 76 65 64 46 69 6c | 65 20 74 6f 20 77 69 6e |SavedFil|e to win|
|00003ff0| 64 6f 77 20 77 6e 0d 73 | 65 74 20 74 65 78 74 73 |dow wn.s|et texts|
|00004000| 65 6c 65 63 74 69 6f 6e | 20 6f 66 20 77 69 6e 64 |election| of wind|
|00004010| 6f 77 20 77 6e 20 74 6f | 20 22 30 2c 30 22 0d 63 |ow wn to| "0,0".c|
|00004020| 62 75 73 79 0d 67 65 74 | 20 61 6c 74 65 72 6e 61 |busy.get| alterna|
|00004030| 74 65 54 65 78 74 20 6f | 66 20 77 69 6e 64 6f 77 |teText o|f window|
|00004040| 20 77 6e 0d 70 75 74 20 | 6c 69 6e 65 20 31 20 6f | wn.put |line 1 o|
|00004050| 66 20 69 74 20 69 6e 74 | 6f 20 74 74 0d 73 65 74 |f it int|o tt.set|
|00004060| 20 64 61 74 61 44 69 72 | 74 79 20 6f 66 20 77 69 | dataDir|ty of wi|
|00004070| 6e 64 6f 77 20 77 6e 20 | 74 6f 20 66 61 6c 73 65 |ndow wn |to false|
|00004080| 0d 70 75 74 20 77 6f 72 | 64 20 31 20 6f 66 20 6c |.put wor|d 1 of l|
|00004090| 69 6e 65 20 32 20 6f 66 | 20 69 74 20 69 6e 74 6f |ine 2 of| it into|
|000040a0| 20 74 68 65 54 65 78 74 | 0d 69 66 20 74 68 65 72 | theText|.if ther|
|000040b0| 65 20 69 73 20 6e 6f 74 | 20 61 20 77 69 6e 64 6f |e is not| a windo|
|000040c0| 77 20 74 74 20 74 68 65 | 6e 0d 73 65 74 20 6e 61 |w tt the|n.set na|
|000040d0| 6d 65 20 6f 66 20 77 69 | 6e 64 6f 77 20 77 6e 20 |me of wi|ndow wn |
|000040e0| 74 6f 20 74 74 0d 69 73 | 45 42 57 20 74 74 0d 63 |to tt.is|EBW tt.c|
|000040f0| 62 75 73 79 0d 66 69 6e | 69 73 68 77 69 6e 64 6f |busy.fin|ishwindo|
|00004100| 77 20 74 74 0d 65 6c 73 | 65 0d 63 6c 6f 73 65 20 |w tt.els|e.close |
|00004110| 77 69 6e 64 6f 77 20 77 | 6e 0d 65 6e 64 20 69 66 |window w|n.end if|
|00004120| 0d 69 66 20 74 68 65 72 | 65 20 69 73 20 61 20 66 |.if ther|e is a f|
|00004130| 6c 64 20 22 6c 61 73 74 | 74 65 78 74 22 20 74 68 |ld "last|text" th|
|00004140| 65 6e 20 67 65 74 20 66 | 6c 64 20 22 6c 61 73 74 |en get f|ld "last|
|00004150| 74 65 78 74 22 0d 65 6c | 73 65 20 67 65 74 20 22 |text".el|se get "|
|00004160| 22 0d 69 66 20 74 68 65 | 74 65 78 74 ad 69 74 20 |".if the|text.it |
|00004170| 74 68 65 6e 0d 75 6e 6d | 61 72 6b 20 61 6c 6c 20 |then.unm|ark all |
|00004180| 63 64 73 0d 63 62 75 73 | 79 0d 6d 61 72 6b 20 63 |cds.cbus|y.mark c|
|00004190| 64 73 20 62 79 20 66 69 | 6e 64 69 6e 67 20 77 68 |ds by fi|nding wh|
|000041a0| 6f 6c 65 20 74 68 65 74 | 65 78 74 0d 69 66 20 74 |ole thet|ext.if t|
|000041b0| 68 65 72 65 20 69 73 20 | 61 20 66 6c 64 20 22 6c |here is |a fld "l|
|000041c0| 61 73 74 74 65 78 74 22 | 20 74 68 65 6e 20 70 75 |asttext"| then pu|
|000041d0| 74 20 74 68 65 74 65 78 | 74 20 69 6e 74 6f 20 66 |t thetex|t into f|
|000041e0| 6c 64 20 22 6c 61 73 74 | 74 65 78 74 22 0d 65 6e |ld "last|text".en|
|000041f0| 64 20 69 66 0d 65 6e 64 | 20 54 57 4f 6c 64 46 69 |d if.end| TWOldFi|
|00004200| 6e 64 0d 6f 6e 20 64 6f | 54 57 20 6e 2c 74 0d 67 |nd.on do|TW n,t.g|
|00004210| 6c 6f 62 61 6c 20 69 64 | 6c 69 73 74 2c 42 4e 61 |lobal id|list,BNa|
|00004220| 6d 65 2c 46 49 43 0d 69 | 66 20 6e 75 6d 4c 6e 73 |me,FIC.i|f numLns|
|00004230| 28 74 29 3d 30 20 74 68 | 65 6e 20 65 78 69 74 20 |(t)=0 th|en exit |
|00004240| 64 6f 54 57 0d 70 75 74 | 20 6e 26 46 49 43 20 69 |doTW.put| n&FIC i|
|00004250| 6e 74 6f 20 6e 0d 72 65 | 70 65 61 74 20 77 68 69 |nto n.re|peat whi|
|00004260| 6c 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 63 68 61 |le numbe|r of cha|
|00004270| 72 73 20 69 6e 20 74 3e | 32 38 30 30 30 0d 64 65 |rs in t>|28000.de|
|00004280| 6c 65 74 65 20 6c 61 73 | 74 20 6c 69 6e 65 20 6f |lete las|t line o|
|00004290| 66 20 74 0d 64 65 6c 65 | 74 65 20 6c 61 73 74 20 |f t.dele|te last |
|000042a0| 6c 69 6e 65 20 6f 66 20 | 69 64 6c 69 73 74 0d 65 |line of |idlist.e|
|000042b0| 6e 64 20 72 65 70 65 61 | 74 0d 70 75 74 20 28 6e |nd repea|t.put (n|
|000042c0| 26 22 20 2d 20 22 26 6e | 75 6d 4c 6e 73 28 74 29 |&" - "&n|umLns(t)|
|000042d0| 29 20 69 6e 74 6f 20 77 | 6e 0d 6d 61 78 6d 65 6d |) into w|n.maxmem|
|000042e0| 0d 69 66 20 28 28 6e 75 | 6d 62 65 72 20 6f 66 20 |.if ((nu|mber of |
|000042f0| 63 68 61 72 73 20 69 6e | 20 74 2b 31 30 30 30 30 |chars in| t+10000|
|00004300| 30 2b 6e 75 6d 62 65 72 | 20 6f 66 20 63 68 61 72 |0+number| of char|
|00004310| 73 20 69 6e 20 69 64 6c | 69 73 74 29 3c 68 65 61 |s in idl|ist)<hea|
|00004320| 70 73 70 61 63 65 28 29 | 29 20 74 68 65 6e 0d 63 |pspace()|) then.c|
|00004330| 62 75 73 79 0d 74 65 78 | 74 78 77 69 6e 64 6f 77 |busy.tex|txwindow|
|00004340| 20 33 32 30 35 31 2c 77 | 6e 0d 69 66 20 74 68 65 | 32051,w|n.if the|
|00004350| 72 65 20 69 73 20 61 20 | 77 69 6e 64 6f 77 20 77 |re is a |window w|
|00004360| 6e 20 74 68 65 6e 0d 73 | 65 74 20 6e 65 76 65 72 |n then.s|et never|
|00004370| 77 72 61 70 20 6f 66 20 | 77 69 6e 64 6f 77 20 77 |wrap of |window w|
|00004380| 6e 20 74 6f 20 74 72 75 | 65 0d 73 65 74 20 74 65 |n to tru|e.set te|
|00004390| 78 74 66 6f 6e 74 20 6f | 66 20 77 69 6e 64 6f 77 |xtfont o|f window|
|000043a0| 20 77 6e 20 74 6f 20 48 | 43 4d 49 28 33 32 29 0d | wn to H|CMI(32).|
|000043b0| 73 65 74 20 74 65 78 74 | 20 6f 66 20 77 69 6e 64 |set text| of wind|
|000043c0| 6f 77 20 77 6e 20 74 6f | 20 74 0d 73 65 74 20 74 |ow wn to| t.set t|
|000043d0| 65 78 74 73 65 6c 65 63 | 74 69 6f 6e 20 6f 66 20 |extselec|tion of |
|000043e0| 77 69 6e 64 6f 77 20 77 | 6e 20 74 6f 20 22 30 2c |window w|n to "0,|
|000043f0| 30 22 0d 63 62 75 73 79 | 0d 67 65 74 20 67 65 74 |0".cbusy|.get get|
|00004400| 53 46 50 61 74 68 28 29 | 26 6e 0d 73 65 74 20 73 |SFPath()|&n.set s|
|00004410| 61 76 65 46 69 6c 65 4e | 61 6d 65 20 6f 66 20 77 |aveFileN|ame of w|
|00004420| 69 6e 64 6f 77 20 77 6e | 20 74 6f 20 69 74 0d 67 |indow wn| to it.g|
|00004430| 65 74 20 67 65 74 41 6c | 65 72 74 4d 73 67 28 6e |et getAl|ertMsg(n|
|00004440| 29 0d 73 65 74 20 73 61 | 76 65 41 6c 65 72 74 4d |).set sa|veAlertM|
|00004450| 65 73 73 61 67 65 20 6f | 66 20 77 69 6e 64 6f 77 |essage o|f window|
|00004460| 20 77 6e 20 74 6f 20 69 | 74 0d 73 65 74 20 73 61 | wn to i|t.set sa|
|00004470| 76 65 41 6c 65 72 74 49 | 44 20 6f 66 20 77 69 6e |veAlertI|D of win|
|00004480| 64 6f 77 20 77 6e 20 74 | 6f 20 47 65 74 44 6c 67 |dow wn t|o GetDlg|
|00004490| 49 44 28 33 32 38 29 0d | 63 62 75 73 79 0d 67 65 |ID(328).|cbusy.ge|
|000044a0| 74 20 77 6e 26 72 65 74 | 75 72 6e 26 6e 26 72 65 |t wn&ret|urn&n&re|
|000044b0| 74 75 72 6e 26 42 4e 61 | 6d 65 26 72 65 74 75 72 |turn&BNa|me&retur|
|000044c0| 6e 26 69 64 6c 69 73 74 | 0d 73 65 74 20 61 6c 74 |n&idlist|.set alt|
|000044d0| 65 72 6e 61 74 65 74 65 | 78 74 20 6f 66 20 77 69 |ernatete|xt of wi|
|000044e0| 6e 64 6f 77 20 77 6e 20 | 74 6f 20 69 74 0d 66 69 |ndow wn |to it.fi|
|000044f0| 6e 69 73 68 77 69 6e 64 | 6f 77 20 77 6e 0d 69 73 |nishwind|ow wn.is|
|00004500| 45 42 57 20 77 6e 0d 65 | 6c 73 65 0d 6c 6f 6d 65 |EBW wn.e|lse.lome|
|00004510| 6d 20 77 6e 0d 65 6e 64 | 20 69 66 0d 65 6c 73 65 |m wn.end| if.else|
|00004520| 0d 6c 6f 6d 65 6d 20 77 | 6e 0d 65 6e 64 20 69 66 |.lomem w|n.end if|
|00004530| 0d 65 6e 64 20 64 6f 54 | 57 0d 6f 6e 20 66 6f 75 |.end doT|W.on fou|
|00004540| 6e 64 6d 65 6e 75 0d 67 | 6c 6f 62 61 6c 20 6e 61 |ndmenu.g|lobal na|
|00004550| 6d 65 6c 69 73 74 2c 74 | 68 65 74 65 78 74 2c 42 |melist,t|hetext,B|
|00004560| 6e 61 6d 65 0d 70 75 74 | 20 73 73 6e 28 29 20 69 |name.put| ssn() i|
|00004570| 6e 74 6f 20 42 6e 61 6d | 65 0d 69 66 20 74 68 65 |nto Bnam|e.if the|
|00004580| 74 65 78 74 3d 22 22 20 | 74 68 65 6e 20 70 75 74 |text="" |then put|
|00004590| 20 22 55 6e 75 73 65 64 | 22 20 69 6e 74 6f 20 74 | "Unused|" into t|
|000045a0| 68 65 74 65 78 74 0d 70 | 75 74 20 73 74 72 69 70 |hetext.p|ut strip|
|000045b0| 65 6d 28 6e 61 6d 65 6c | 69 73 74 2c 22 a6 3b 22 |em(namel|ist,".;"|
|000045c0| 26 72 65 74 75 72 6e 2c | 72 65 74 75 72 6e 26 22 |&return,|return&"|
|000045d0| 3a 20 22 29 20 69 6e 74 | 6f 20 74 73 0d 64 6f 54 |: ") int|o ts.doT|
|000045e0| 57 20 74 68 65 54 65 78 | 74 2c 74 73 0d 65 6e 64 |W theTex|t,ts.end|
|000045f0| 20 66 6f 75 6e 64 6d 65 | 6e 75 0d 6f 6e 20 66 69 | foundme|nu.on fi|
|00004600| 6e 64 69 74 20 69 74 2c | 68 6f 77 0d 67 6c 6f 62 |ndit it,|how.glob|
|00004610| 61 6c 20 69 64 6c 69 73 | 74 2c 42 6e 61 6d 65 0d |al idlis|t,Bname.|
|00004620| 4c 53 0d 4c 4d 20 74 72 | 75 65 0d 69 66 20 4e 42 |LS.LM tr|ue.if NB|
|00004630| 28 29 20 74 68 65 6e 20 | 67 6f 20 73 74 61 63 6b |() then |go stack|
|00004640| 20 42 6e 61 6d 65 0d 70 | 75 74 20 6c 69 6e 65 20 | Bname.p|ut line |
|00004650| 69 74 20 6f 66 20 69 64 | 6c 69 73 74 20 69 6e 74 |it of id|list int|
|00004660| 6f 20 67 74 0d 4c 4d 20 | 66 61 6c 73 65 0d 67 6f |o gt.LM |false.go|
|00004670| 20 63 64 20 69 74 65 6d | 20 31 20 6f 66 20 67 74 | cd item| 1 of gt|
|00004680| 0d 55 53 0d 69 66 20 69 | 74 65 6d 20 32 20 6f 66 |.US.if i|tem 2 of|
|00004690| 20 67 74 3d 22 22 20 74 | 68 65 6e 0d 66 69 6e 64 | gt="" t|hen.find|
|000046a0| 20 68 6f 77 20 77 6f 72 | 64 20 31 20 6f 66 20 66 | how wor|d 1 of f|
|000046b0| 6c 64 20 22 74 68 65 74 | 65 78 74 22 0d 70 75 74 |ld "thet|ext".put|
|000046c0| 20 66 6f 75 6e 64 63 68 | 75 6e 6b 28 29 20 69 6e | foundch|unk() in|
|000046d0| 74 6f 20 66 63 0d 73 68 | 66 20 66 63 0d 73 65 6c |to fc.sh|f fc.sel|
|000046e0| 65 63 74 20 66 63 0d 65 | 6c 73 65 0d 70 75 74 20 |ect fc.e|lse.put |
|000046f0| 69 74 65 6d 20 32 20 6f | 66 20 67 74 20 69 6e 74 |item 2 o|f gt int|
|00004700| 6f 20 66 63 0d 73 68 66 | 20 66 63 0d 73 65 6c 65 |o fc.shf| fc.sele|
|00004710| 63 74 20 66 63 0d 65 6e | 64 20 69 66 0d 65 6e 64 |ct fc.en|d if.end|
|00004720| 20 66 69 6e 64 69 74 0d | 66 75 6e 63 74 69 6f 6e | findit.|function|
|00004730| 20 46 69 74 20 77 0d 63 | 68 65 63 6b 20 77 2c 28 | Fit w.c|heck w,(|
|00004740| 6e 6f 74 20 28 63 68 65 | 63 6b 6d 61 72 6b 20 6f |not (che|ckmark o|
|00004750| 66 20 6d 65 6e 75 69 74 | 65 6d 20 77 20 6f 66 20 |f menuit|em w of |
|00004760| 6d 65 6e 75 20 74 53 74 | 72 28 22 4c 69 62 4d 73 |menu tSt|r("LibMs|
|00004770| 67 22 2c 34 30 29 29 29 | 0d 72 65 74 75 72 6e 20 |g",40)))|.return |
|00004780| 63 68 65 63 6b 6d 61 72 | 6b 20 6f 66 20 6d 65 6e |checkmar|k of men|
|00004790| 75 69 74 65 6d 20 77 20 | 6f 66 20 6d 65 6e 75 20 |uitem w |of menu |
|000047a0| 74 53 74 72 28 22 4c 69 | 62 4d 73 67 22 2c 34 30 |tStr("Li|bMsg",40|
|000047b0| 29 0d 65 6e 64 20 46 69 | 74 0d 66 75 6e 63 74 69 |).end Fi|t.functi|
|000047c0| 6f 6e 20 69 73 45 6e 61 | 62 6c 65 64 20 69 2c 6d |on isEna|bled i,m|
|000047d0| 0d 72 65 74 75 72 6e 20 | 74 68 65 20 65 6e 61 62 |.return |the enab|
|000047e0| 6c 65 64 20 6f 66 20 6d | 65 6e 75 69 74 65 6d 20 |led of m|enuitem |
|000047f0| 69 20 6f 66 20 6d 65 6e | 75 20 6d 0d 65 6e 64 20 |i of men|u m.end |
|00004800| 69 73 45 6e 61 62 6c 65 | 64 0d 6f 6e 20 55 44 63 |isEnable|d.on UDc|
|00004810| 6c 69 70 73 0d 69 66 20 | 6e 6f 74 20 43 44 73 28 |lips.if |not CDs(|
|00004820| 29 20 6f 72 20 74 68 65 | 72 65 20 69 73 20 61 20 |) or the|re is a |
|00004830| 62 67 20 42 74 6e 20 22 | 6e 6f 20 63 6c 69 70 73 |bg Btn "|no clips|
|00004840| 22 20 74 68 65 6e 20 65 | 78 69 74 20 55 44 43 6c |" then e|xit UDCl|
|00004850| 69 70 73 0d 72 65 70 65 | 61 74 20 77 69 74 68 20 |ips.repe|at with |
|00004860| 61 3d 37 30 20 74 6f 20 | 37 33 0d 70 75 74 20 73 |a=70 to |73.put s|
|00004870| 68 6f 72 74 20 6e 61 6d | 65 20 6f 66 20 62 67 20 |hort nam|e of bg |
|00004880| 42 74 6e 20 69 64 20 61 | 20 69 6e 74 6f 20 73 6e |Btn id a| into sn|
|00004890| 0d 69 66 20 73 6e 3d 22 | 6e 6f 74 20 61 20 63 6c |.if sn="|not a cl|
|000048a0| 69 70 70 65 64 20 63 61 | 72 64 22 20 74 68 65 6e |ipped ca|rd" then|
|000048b0| 20 67 65 74 20 32 31 31 | 30 33 0d 65 6c 73 65 20 | get 211|03.else |
|000048c0| 67 65 74 20 32 31 31 30 | 31 0d 69 66 20 73 6e 3d |get 2110|1.if sn=|
|000048d0| 69 64 20 6f 66 20 74 68 | 69 73 20 63 64 20 74 68 |id of th|is cd th|
|000048e0| 65 6e 20 67 65 74 20 32 | 31 31 30 32 0d 69 66 20 |en get 2|1102.if |
|000048f0| 69 63 6f 6e 20 6f 66 20 | 62 67 20 62 74 6e 20 69 |icon of |bg btn i|
|00004900| 64 20 61 20 ad 20 69 74 | 20 74 68 65 6e 20 73 65 |d a . it| then se|
|00004910| 74 20 69 63 6f 6e 20 6f | 66 20 62 67 20 42 74 6e |t icon o|f bg Btn|
|00004920| 20 69 64 20 61 20 74 6f | 20 69 74 0d 65 6e 64 20 | id a to| it.end |
|00004930| 72 65 70 65 61 74 0d 65 | 6e 64 20 55 44 63 6c 69 |repeat.e|nd UDcli|
|00004940| 70 73 0d 6f 6e 20 64 72 | 61 67 63 6c 69 70 0d 64 |ps.on dr|agclip.d|
|00004950| 6f 43 53 54 52 20 22 64 | 72 61 67 43 6c 69 70 43 |oCSTR "d|ragClipC|
|00004960| 53 54 52 22 0d 65 6e 64 | 20 64 72 61 67 63 6c 69 |STR".end| dragcli|
|00004970| 70 0d 66 75 6e 63 74 69 | 6f 6e 20 73 65 6c 65 63 |p.functi|on selec|
|00004980| 74 61 6e 79 0d 72 65 74 | 75 72 6e 20 6e 75 6d 62 |tany.ret|urn numb|
|00004990| 65 72 20 6f 66 20 63 68 | 61 72 73 20 69 6e 20 74 |er of ch|ars in t|
|000049a0| 68 65 20 73 65 6c 65 63 | 74 69 6f 6e 3e 30 0d 65 |he selec|tion>0.e|
|000049b0| 6e 64 20 73 65 6c 65 63 | 74 61 6e 79 0d 6f 6e 20 |nd selec|tany.on |
|000049c0| 73 65 74 70 6c 61 69 6e | 0d 69 66 20 73 65 6c 65 |setplain|.if sele|
|000049d0| 63 74 61 6e 79 28 29 20 | 74 68 65 6e 0d 63 62 75 |ctany() |then.cbu|
|000049e0| 73 79 0d 67 65 74 20 6d | 79 53 78 28 22 43 22 29 |sy.get m|ySx("C")|
|000049f0| 0d 72 65 6d 6f 76 65 75 | 62 20 77 6f 72 64 20 38 |.removeu|b word 8|
|00004a00| 20 6f 66 20 69 74 2c 66 | 61 6c 73 65 2c 77 6f 72 | of it,f|alse,wor|
|00004a10| 64 20 32 20 6f 66 20 69 | 74 2c 77 6f 72 64 20 34 |d 2 of i|t,word 4|
|00004a20| 20 6f 66 20 69 74 0d 73 | 65 6c 65 63 74 20 69 74 | of it.s|elect it|
|00004a30| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 73 65 74 70 |.end if.|end setp|
|00004a40| 6c 61 69 6e 0d 6f 6e 20 | 73 65 74 62 6f 6c 64 0d |lain.on |setbold.|
|00004a50| 69 66 20 73 65 6c 65 63 | 74 61 6e 79 28 29 20 74 |if selec|tany() t|
|00004a60| 68 65 6e 20 64 6f 6d 65 | 6e 75 20 48 43 4d 49 28 |hen dome|nu HCMI(|
|00004a70| 32 33 29 0d 65 6e 64 20 | 73 65 74 62 6f 6c 64 0d |23).end |setbold.|
|00004a80| 6f 6e 20 73 65 74 75 6e | 64 65 72 6c 69 6e 65 0d |on setun|derline.|
|00004a90| 69 66 20 73 65 6c 65 63 | 74 61 6e 79 28 29 20 74 |if selec|tany() t|
|00004aa0| 68 65 6e 20 64 6f 6d 65 | 6e 75 20 48 43 4d 49 28 |hen dome|nu HCMI(|
|00004ab0| 32 35 29 0d 65 6e 64 20 | 73 65 74 75 6e 64 65 72 |25).end |setunder|
|00004ac0| 6c 69 6e 65 0d 6f 6e 20 | 64 6f 6d 61 72 6b 74 65 |line.on |domarkte|
|00004ad0| 78 74 0d 70 75 74 20 6c | 6f 63 6b 74 65 78 74 20 |xt.put l|ocktext |
|00004ae0| 6f 66 20 74 61 72 67 65 | 74 20 69 6e 74 6f 20 6c |of targe|t into l|
|00004af0| 0d 73 65 74 20 6c 6f 63 | 6b 74 65 78 74 20 6f 66 |.set loc|ktext of|
|00004b00| 20 74 61 72 67 65 74 20 | 74 6f 20 66 61 6c 73 65 | target |to false|
|00004b10| 0d 63 6c 69 63 6b 20 61 | 74 20 6d 79 43 78 28 22 |.click a|t myCx("|
|00004b20| 4c 22 29 0d 72 65 70 65 | 61 74 20 75 6e 74 69 6c |L").repe|at until|
|00004b30| 20 6d 6f 75 73 65 28 29 | 3d 22 75 70 22 0d 63 6c | mouse()|="up".cl|
|00004b40| 69 63 6b 20 61 74 20 6d | 6f 75 73 65 6c 6f 63 28 |ick at m|ouseloc(|
|00004b50| 29 20 77 69 74 68 20 73 | 68 69 66 74 6b 65 79 0d |) with s|hiftkey.|
|00004b60| 65 6e 64 20 72 65 70 65 | 61 74 0d 73 65 74 20 6c |end repe|at.set l|
|00004b70| 6f 63 6b 74 65 78 74 20 | 6f 66 20 74 61 72 67 65 |ocktext |of targe|
|00004b80| 74 20 74 6f 20 6c 0d 65 | 6e 64 20 64 6f 6d 61 72 |t to l.e|nd domar|
|00004b90| 6b 74 65 78 74 0d 6f 6e | 20 64 6f 4d 61 72 6b 0d |ktext.on| doMark.|
|00004ba0| 64 6f 43 53 54 52 20 22 | 64 6f 4d 61 72 6b 43 53 |doCSTR "|doMarkCS|
|00004bb0| 54 52 22 0d 65 6e 64 20 | 64 6f 4d 61 72 6b 0d 6f |TR".end |doMark.o|
|00004bc0| 6e 20 64 6f 62 6c 61 63 | 6b 73 0d 64 6f 43 53 54 |n doblac|ks.doCST|
|00004bd0| 52 20 22 64 6f 42 6c 61 | 63 6b 73 43 53 54 52 22 |R "doBla|cksCSTR"|
|00004be0| 0d 65 6e 64 20 64 6f 62 | 6c 61 63 6b 73 0d 6f 6e |.end dob|lacks.on|
|00004bf0| 20 6c 69 73 74 62 6c 61 | 63 6b 73 0d 64 6f 43 53 | listbla|cks.doCS|
|00004c00| 54 52 20 22 6c 69 73 74 | 42 6c 61 63 6b 73 43 53 |TR "list|BlacksCS|
|00004c10| 54 52 22 0d 65 6e 64 20 | 6c 69 73 74 62 6c 61 63 |TR".end |listblac|
|00004c20| 6b 73 0d 6f 6e 20 64 6f | 70 61 67 65 0d 64 6f 43 |ks.on do|page.doC|
|00004c30| 53 54 52 20 22 64 6f 50 | 61 67 65 43 53 54 52 22 |STR "doP|ageCSTR"|
|00004c40| 0d 65 6e 64 20 64 6f 70 | 61 67 65 0d 6f 6e 20 64 |.end dop|age.on d|
|00004c50| 6f 66 69 6e 64 0d 67 6c | 6f 62 61 6c 20 6f 6c 64 |ofind.gl|obal old|
|00004c60| 74 65 78 74 2c 74 68 65 | 54 65 78 74 2c 46 49 43 |text,the|Text,FIC|
|00004c70| 0d 63 63 73 0d 70 75 74 | 20 74 72 75 65 20 69 6e |.ccs.put| true in|
|00004c80| 74 6f 20 64 66 0d 70 75 | 74 20 22 22 20 69 6e 74 |to df.pu|t "" int|
|00004c90| 6f 20 46 49 43 0d 70 75 | 74 20 47 65 74 46 69 6c |o FIC.pu|t GetFil|
|00004ca0| 65 73 49 6e 44 69 72 28 | 67 65 74 53 46 50 61 74 |esInDir(|getSFPat|
|00004cb0| 68 28 29 2c 22 54 45 58 | 54 22 2c 72 65 74 75 72 |h(),"TEX|T",retur|
|00004cc0| 6e 29 20 69 6e 74 6f 20 | 73 66 6c 0d 69 66 20 6d |n) into |sfl.if m|
|00004cd0| 6f 75 73 65 28 29 3d 22 | 64 6f 77 6e 22 20 74 68 |ouse()="|down" th|
|00004ce0| 65 6e 0d 70 75 74 20 66 | 61 6c 73 65 20 69 6e 74 |en.put f|alse int|
|00004cf0| 6f 20 64 66 0d 69 66 20 | 73 66 6c ad 22 22 20 74 |o df.if |sfl."" t|
|00004d00| 68 65 6e 0d 70 75 74 20 | 73 66 6c 26 72 65 74 75 |hen.put |sfl&retu|
|00004d10| 72 6e 26 22 2d 22 26 72 | 65 74 75 72 6e 26 74 53 |rn&"-"&r|eturn&tS|
|00004d20| 74 72 28 22 4c 69 62 4d | 73 67 22 2c 39 29 20 69 |tr("LibM|sg",9) i|
|00004d30| 6e 74 6f 20 68 6f 6c 64 | 65 72 0d 67 65 74 20 70 |nto hold|er.get p|
|00004d40| 6f 70 69 74 75 70 28 68 | 6f 6c 64 65 72 2c 30 2c |opitup(h|older,0,|
|00004d50| 63 6c 69 63 6b 68 28 29 | 2d 31 30 30 2c 63 6c 69 |clickh()|-100,cli|
|00004d60| 63 6b 76 28 29 29 0d 67 | 65 74 20 69 74 65 6d 20 |ckv()).g|et item |
|00004d70| 31 20 6f 66 20 69 74 0d | 70 75 74 20 69 74 3d 6e |1 of it.|put it=n|
|00004d80| 75 6d 4c 6e 73 28 68 6f | 6c 64 65 72 29 20 69 6e |umLns(ho|lder) in|
|00004d90| 74 6f 20 64 66 0d 69 66 | 20 28 6e 6f 74 20 64 66 |to df.if| (not df|
|00004da0| 20 61 6e 64 20 69 74 3e | 30 29 20 74 68 65 6e 0d | and it>|0) then.|
|00004db0| 54 57 4f 6c 64 46 69 6e | 64 20 6c 69 6e 65 20 69 |TWOldFin|d line i|
|00004dc0| 74 20 6f 66 20 73 66 6c | 0d 65 6e 64 20 69 66 0d |t of sfl|.end if.|
|00004dd0| 65 6c 73 65 0d 61 6e 73 | 77 65 72 20 74 53 74 72 |else.ans|wer tStr|
|00004de0| 28 22 4c 69 62 4d 73 67 | 22 2c 31 30 29 26 26 73 |("LibMsg|",10)&&s|
|00004df0| 73 6e 28 29 26 22 2e 22 | 0d 65 6e 64 20 69 66 0d |sn()&"."|.end if.|
|00004e00| 65 6e 64 20 69 66 0d 69 | 66 20 6e 6f 74 20 28 64 |end if.i|f not (d|
|00004e10| 66 29 20 74 68 65 6e 20 | 65 78 69 74 20 64 6f 66 |f) then |exit dof|
|00004e20| 69 6e 64 0d 70 75 74 20 | 69 64 20 6f 66 20 74 68 |ind.put |id of th|
|00004e30| 69 73 20 63 64 20 69 6e | 74 6f 20 46 46 0d 61 73 |is cd in|to FF.as|
|00004e40| 6b 20 74 53 74 72 28 22 | 4c 69 62 4d 73 67 22 2c |k tStr("|LibMsg",|
|00004e50| 31 39 29 20 77 69 74 68 | 20 6f 6c 64 74 65 78 74 |19) with| oldtext|
|00004e60| 0d 69 66 20 69 74 3d 22 | 22 20 74 68 65 6e 20 65 |.if it="|" then e|
|00004e70| 78 69 74 20 64 6f 66 69 | 6e 64 0d 70 75 74 20 73 |xit dofi|nd.put s|
|00004e80| 66 6c 20 69 6e 74 6f 20 | 73 66 70 0d 69 66 20 49 |fl into |sfp.if I|
|00004e90| 73 4f 6c 64 46 69 6e 64 | 28 69 74 2c 73 66 70 29 |sOldFind|(it,sfp)|
|00004ea0| 20 74 68 65 6e 0d 69 66 | 20 74 68 65 20 73 65 6c | then.if| the sel|
|00004eb0| 65 63 74 65 64 63 68 75 | 6e 6b ad 65 6d 70 74 79 |ectedchu|nk.empty|
|00004ec0| 20 74 68 65 6e 20 73 65 | 6c 65 63 74 20 65 6d 70 | then se|lect emp|
|00004ed0| 74 79 0d 55 53 0d 66 69 | 6e 64 20 77 6f 72 64 20 |ty.US.fi|nd word |
|00004ee0| 31 20 6f 66 20 74 68 65 | 74 65 78 74 0d 70 75 74 |1 of the|text.put|
|00004ef0| 20 66 6f 75 6e 64 63 68 | 75 6e 6b 28 29 20 69 6e | foundch|unk() in|
|00004f00| 74 6f 20 66 63 0d 73 68 | 66 20 66 63 0d 73 65 6c |to fc.sh|f fc.sel|
|00004f10| 65 63 74 20 66 63 0d 65 | 78 69 74 20 64 6f 66 69 |ect fc.e|xit dofi|
|00004f20| 6e 64 0d 65 6e 64 20 69 | 66 0d 63 62 75 73 79 0d |nd.end i|f.cbusy.|
|00004f30| 70 75 74 20 69 74 20 69 | 6e 74 6f 20 6f 6c 64 74 |put it i|nto oldt|
|00004f40| 65 78 74 0d 70 75 74 20 | 69 74 20 69 6e 74 6f 20 |ext.put |it into |
|00004f50| 74 68 65 54 65 78 74 0d | 67 65 74 61 6c 6c 20 22 |theText.|getall "|
|00004f60| 22 0d 69 66 20 6e 75 6d | 62 65 72 20 6f 66 20 6d |".if num|ber of m|
|00004f70| 61 72 6b 65 64 20 63 64 | 73 3d 30 20 74 68 65 6e |arked cd|s=0 then|
|00004f80| 0d 67 6f 20 46 46 0d 61 | 6e 73 77 65 72 20 74 53 |.go FF.a|nswer tS|
|00004f90| 74 72 28 22 4c 69 62 4d | 73 67 22 2c 31 33 29 20 |tr("LibM|sg",13) |
|00004fa0| 77 69 74 68 20 74 53 74 | 72 28 22 4c 69 62 4d 73 |with tSt|r("LibMs|
|00004fb0| 67 22 2c 31 31 29 20 6f | 72 20 74 53 74 72 28 22 |g",11) o|r tStr("|
|00004fc0| 4c 69 62 4d 73 67 22 2c | 31 32 29 0d 69 66 20 69 |LibMsg",|12).if i|
|00004fd0| 74 ad 74 53 74 72 28 22 | 4c 69 62 4d 73 67 22 2c |t.tStr("|LibMsg",|
|00004fe0| 31 31 29 20 74 68 65 6e | 20 64 6f 66 69 6e 64 0d |11) then| dofind.|
|00004ff0| 65 78 69 74 20 64 6f 66 | 69 6e 64 0d 65 6c 73 65 |exit dof|ind.else|
|00005000| 0d 69 66 20 74 68 65 72 | 65 20 69 73 20 61 20 66 |.if ther|e is a f|
|00005010| 6c 64 20 22 6c 61 73 74 | 74 65 78 74 22 20 74 68 |ld "last|text" th|
|00005020| 65 6e 20 70 75 74 20 74 | 68 65 74 65 78 74 20 69 |en put t|hetext i|
|00005030| 6e 74 6f 20 66 6c 64 20 | 22 6c 61 73 74 74 65 78 |nto fld |"lasttex|
|00005040| 74 22 0d 69 66 20 74 68 | 65 20 73 65 6c 65 63 74 |t".if th|e select|
|00005050| 65 64 63 68 75 6e 6b ad | 65 6d 70 74 79 20 74 68 |edchunk.|empty th|
|00005060| 65 6e 20 73 65 6c 65 63 | 74 20 65 6d 70 74 79 0d |en selec|t empty.|
|00005070| 55 53 0d 66 69 6e 64 20 | 77 6f 72 64 20 31 20 6f |US.find |word 1 o|
|00005080| 66 20 74 68 65 74 65 78 | 74 0d 70 75 74 20 66 6f |f thetex|t.put fo|
|00005090| 75 6e 64 63 68 75 6e 6b | 28 29 20 69 6e 74 6f 20 |undchunk|() into |
|000050a0| 66 63 0d 73 68 66 20 66 | 63 0d 73 65 6c 65 63 74 |fc.shf f|c.select|
|000050b0| 20 66 63 0d 65 6e 64 20 | 69 66 0d 65 6e 64 20 64 | fc.end |if.end d|
|000050c0| 6f 66 69 6e 64 0d 6f 6e | 20 76 69 73 20 77 68 61 |ofind.on| vis wha|
|000050d0| 74 2c 57 0d 64 6f 20 22 | 69 66 20 74 68 65 72 65 |t,W.do "|if there|
|000050e0| 20 69 73 20 61 22 26 26 | 77 68 61 74 26 26 22 74 | is a"&&|what&&"t|
|000050f0| 68 65 6e 20 73 65 74 20 | 76 69 73 69 62 6c 65 20 |hen set |visible |
|00005100| 6f 66 20 77 68 61 74 20 | 74 6f 20 57 22 0d 65 6e |of what |to W".en|
|00005110| 64 20 76 69 73 0d 6f 6e | 20 64 6f 52 54 0d 64 6f |d vis.on| doRT.do|
|00005120| 43 53 54 52 20 22 64 6f | 52 54 43 53 54 52 22 0d |CSTR "do|RTCSTR".|
|00005130| 65 6e 64 20 64 6f 52 54 | 0d 66 75 6e 63 74 69 6f |end doRT|.functio|
|00005140| 6e 20 49 73 4f 6c 64 46 | 69 6e 64 20 74 2c 6c 0d |n IsOldF|ind t,l.|
|00005150| 67 6c 6f 62 61 6c 20 46 | 49 43 0d 70 75 74 20 66 |global F|IC.put f|
|00005160| 61 6c 73 65 20 69 6e 74 | 6f 20 62 0d 70 75 74 20 |alse int|o b.put |
|00005170| 46 49 43 20 61 66 74 65 | 72 20 74 0d 72 65 70 65 |FIC afte|r t.repe|
|00005180| 61 74 20 77 69 74 68 20 | 78 3d 31 20 74 6f 20 6e |at with |x=1 to n|
|00005190| 75 6d 62 65 72 20 6f 66 | 20 6c 69 6e 65 73 20 69 |umber of| lines i|
|000051a0| 6e 20 6c 0d 69 66 20 74 | 3d 6c 69 6e 65 20 78 20 |n l.if t|=line x |
|000051b0| 6f 66 20 6c 20 74 68 65 | 6e 0d 70 75 74 20 74 72 |of l the|n.put tr|
|000051c0| 75 65 20 69 6e 74 6f 20 | 62 0d 65 78 69 74 20 72 |ue into |b.exit r|
|000051d0| 65 70 65 61 74 0d 65 6e | 64 20 69 66 0d 65 6e 64 |epeat.en|d if.end|
|000051e0| 20 72 65 70 65 61 74 0d | 69 66 20 62 20 74 68 65 | repeat.|if b the|
|000051f0| 6e 20 54 57 4f 6c 64 46 | 69 6e 64 20 74 0d 72 65 |n TWOldF|ind t.re|
|00005200| 74 75 72 6e 20 62 0d 65 | 6e 64 20 49 73 4f 6c 64 |turn b.e|nd IsOld|
|00005210| 46 69 6e 64 0d 6f 6e 20 | 67 65 74 61 6c 6c 20 68 |Find.on |getall h|
|00005220| 6f 77 0d 67 6c 6f 62 61 | 6c 20 6e 61 6d 65 6c 69 |ow.globa|l nameli|
|00005230| 73 74 2c 74 68 65 74 65 | 78 74 2c 66 69 72 73 74 |st,thete|xt,first|
|00005240| 6e 61 6d 65 2c 69 64 6c | 69 73 74 2c 42 6e 61 6d |name,idl|ist,Bnam|
|00005250| 65 0d 4c 61 6c 6c 0d 69 | 66 20 4e 42 28 29 20 74 |e.Lall.i|f NB() t|
|00005260| 68 65 6e 20 67 6f 20 62 | 67 20 22 64 65 74 61 69 |hen go b|g "detai|
|00005270| 6c 73 22 20 6f 66 20 73 | 74 61 63 6b 20 42 6e 61 |ls" of s|tack Bna|
|00005280| 6d 65 0d 70 75 74 20 22 | 22 20 69 6e 74 6f 20 6e |me.put "|" into n|
|00005290| 61 6d 65 6c 69 73 74 0d | 75 6e 6d 61 72 6b 20 61 |amelist.|unmark a|
|000052a0| 6c 6c 20 63 64 73 0d 6d | 61 72 6b 20 63 64 73 20 |ll cds.m|ark cds |
|000052b0| 62 79 20 66 69 6e 64 69 | 6e 67 20 68 6f 77 20 74 |by findi|ng how t|
|000052c0| 68 65 74 65 78 74 0d 70 | 75 74 20 22 22 20 69 6e |hetext.p|ut "" in|
|000052d0| 74 6f 20 66 69 72 73 74 | 6e 61 6d 65 0d 70 75 74 |to first|name.put|
|000052e0| 20 22 22 20 69 6e 74 6f | 20 69 64 6c 69 73 74 0d | "" into| idlist.|
|000052f0| 69 66 20 6d 61 72 6b 65 | 64 20 6f 66 20 74 68 69 |if marke|d of thi|
|00005300| 73 20 63 64 20 74 68 65 | 6e 20 70 75 74 20 52 43 |s cd the|n put RC|
|00005310| 4e 28 29 20 69 6e 74 6f | 20 66 69 72 73 74 6e 61 |N() into| firstna|
|00005320| 6d 65 0d 69 66 20 6e 75 | 6d 62 65 72 20 6f 66 20 |me.if nu|mber of |
|00005330| 6d 61 72 6b 65 64 20 63 | 64 73 3d 30 20 74 68 65 |marked c|ds=0 the|
|00005340| 6e 20 65 78 69 74 20 67 | 65 74 61 6c 6c 0d 67 6f |n exit g|etall.go|
|00005350| 20 6c 61 73 74 20 6d 61 | 72 6b 65 64 20 63 64 0d | last ma|rked cd.|
|00005360| 70 75 74 20 6e 75 6d 62 | 65 72 20 6f 66 20 6d 61 |put numb|er of ma|
|00005370| 72 6b 65 64 20 63 64 73 | 20 69 6e 74 6f 20 6d 63 |rked cds| into mc|
|00005380| 74 0d 6f 70 65 6e 67 61 | 75 67 65 0d 70 75 74 20 |t.openga|uge.put |
|00005390| 74 53 74 72 28 22 4c 69 | 62 4d 73 67 22 2c 35 29 |tStr("Li|bMsg",5)|
|000053a0| 26 22 20 22 20 69 6e 74 | 6f 20 70 6e 0d 72 65 70 |&" " int|o pn.rep|
|000053b0| 65 61 74 20 77 69 74 68 | 20 61 3d 31 20 74 6f 20 |eat with| a=1 to |
|000053c0| 6d 63 74 0d 67 6f 20 6e | 65 78 74 20 6d 61 72 6b |mct.go n|ext mark|
|000053d0| 65 64 20 63 64 0d 6e 65 | 78 74 62 75 73 79 0d 69 |ed cd.ne|xtbusy.i|
|000053e0| 66 20 28 6d 6f 75 73 65 | 63 6c 69 63 6b 28 29 20 |f (mouse|click() |
|000053f0| 6f 72 20 6e 75 6d 62 65 | 72 20 6f 66 20 63 68 61 |or numbe|r of cha|
|00005400| 72 73 20 69 6e 20 6e 61 | 6d 65 6c 69 73 74 3e 32 |rs in na|melist>2|
|00005410| 38 30 30 30 20 6f 72 20 | 6e 75 6d 62 65 72 20 6f |8000 or |number o|
|00005420| 66 20 63 68 61 72 73 20 | 69 6e 20 69 64 6c 69 73 |f chars |in idlis|
|00005430| 74 3e 32 38 30 30 30 29 | 20 74 68 65 6e 20 65 78 |t>28000)| then ex|
|00005440| 69 74 20 72 65 70 65 61 | 74 0d 69 66 20 52 43 4e |it repea|t.if RCN|
|00005450| 28 29 3d 66 69 72 73 74 | 6e 61 6d 65 20 74 68 65 |()=first|name the|
|00005460| 6e 20 70 75 74 20 22 a5 | 22 20 69 6e 74 6f 20 53 |n put ".|" into S|
|00005470| 53 0d 65 6c 73 65 20 70 | 75 74 20 22 22 20 69 6e |S.else p|ut "" in|
|00005480| 74 6f 20 53 53 0d 70 75 | 74 20 52 43 4e 28 29 26 |to SS.pu|t RCN()&|
|00005490| 72 65 74 75 72 6e 20 61 | 66 74 65 72 20 69 64 6c |return a|fter idl|
|000054a0| 69 73 74 0d 70 75 74 20 | 53 53 26 70 6e 26 43 4e |ist.put |SS&pn&CN|
|000054b0| 28 29 26 22 a6 22 20 61 | 66 74 65 72 20 6e 61 6d |()&"." a|fter nam|
|000054c0| 65 6c 69 73 74 0d 69 66 | 20 6e 75 6d 62 65 72 20 |elist.if| number |
|000054d0| 6f 66 20 6d 61 72 6b 65 | 64 20 63 64 73 3e 33 20 |of marke|d cds>3 |
|000054e0| 74 68 65 6e 20 64 6f 47 | 61 75 67 65 0d 65 6e 64 |then doG|auge.end|
|000054f0| 20 72 65 70 65 61 74 0d | 66 6f 75 6e 64 6d 65 6e | repeat.|foundmen|
|00005500| 75 0d 76 69 73 20 22 77 | 69 6e 64 6f 77 20 67 61 |u.vis "w|indow ga|
|00005510| 75 67 65 22 2c 28 63 68 | 65 63 6b 65 64 28 74 53 |uge",(ch|ecked(tS|
|00005520| 74 72 28 22 4c 69 62 4d | 73 67 22 2c 34 33 29 29 |tr("LibM|sg",43))|
|00005530| 20 61 6e 64 20 52 43 4e | 28 29 ad 31 29 0d 4c 4d | and RCN|().1).LM|
|00005540| 20 66 61 6c 73 65 0d 69 | 66 20 66 69 72 73 74 6e | false.i|f firstn|
|00005550| 61 6d 65 3d 22 22 20 74 | 68 65 6e 20 67 6f 20 66 |ame="" t|hen go f|
|00005560| 69 72 73 74 20 6d 61 72 | 6b 65 64 20 63 64 0d 65 |irst mar|ked cd.e|
|00005570| 6c 73 65 20 67 6f 20 63 | 64 20 66 69 72 73 74 6e |lse go c|d firstn|
|00005580| 61 6d 65 0d 65 6e 64 20 | 67 65 74 61 6c 6c 0d 66 |ame.end |getall.f|
|00005590| 75 6e 63 74 69 6f 6e 20 | 67 53 63 72 6c 0d 67 6c |unction |gScrl.gl|
|000055a0| 6f 62 61 6c 20 74 63 74 | 0d 72 65 74 75 72 6e 20 |obal tct|.return |
|000055b0| 33 34 30 2d 72 6f 75 6e | 64 28 28 28 43 4e 28 29 |340-roun|d(((CN()|
|000055c0| 29 2f 28 6e 75 6d 62 65 | 72 20 6f 66 20 63 64 73 |)/(numbe|r of cds|
|000055d0| 2d 74 63 74 29 29 2a 33 | 34 30 29 26 22 2c 30 22 |-tct))*3|40)&",0"|
|000055e0| 0d 65 6e 64 20 67 53 63 | 72 6c 0d 6f 6e 20 6f 70 |.end gSc|rl.on op|
|000055f0| 65 6e 62 61 63 6b 67 72 | 6f 75 6e 64 0d 64 6f 43 |enbackgr|ound.doC|
|00005600| 53 54 52 20 22 4f 70 65 | 6e 42 47 43 53 54 52 22 |STR "Ope|nBGCSTR"|
|00005610| 0d 70 61 73 73 20 6f 70 | 65 6e 62 61 63 6b 67 72 |.pass op|enbackgr|
|00005620| 6f 75 6e 64 0d 65 6e 64 | 20 6f 70 65 6e 62 61 63 |ound.end| openbac|
|00005630| 6b 67 72 6f 75 6e 64 0d | 6f 6e 20 64 65 6c 46 69 |kground.|on delFi|
|00005640| 6e 64 0d 64 6f 43 53 54 | 52 20 22 64 65 6c 46 69 |nd.doCST|R "delFi|
|00005650| 6e 64 43 53 54 52 22 0d | 65 6e 64 20 64 65 6c 46 |ndCSTR".|end delF|
|00005660| 69 6e 64 0d 6f 6e 20 6f | 70 65 6e 74 6f 6f 6c 73 |ind.on o|pentools|
|00005670| 0d 63 62 75 73 79 0d 6f | 70 65 6e 67 61 75 67 65 |.cbusy.o|pengauge|
|00005680| 0d 76 69 73 20 22 77 69 | 6e 64 6f 77 20 67 61 75 |.vis "wi|ndow gau|
|00005690| 67 65 22 2c 28 63 68 65 | 63 6b 65 64 28 74 53 74 |ge",(che|cked(tSt|
|000056a0| 72 28 22 4c 69 62 4d 73 | 67 22 2c 34 33 29 29 20 |r("LibMs|g",43)) |
|000056b0| 61 6e 64 20 52 43 4e 28 | 29 ad 31 29 0d 6f 70 65 |and RCN(|).1).ope|
|000056c0| 6e 63 6f 6e 74 72 6f 6c | 73 0d 65 6e 64 20 6f 70 |ncontrol|s.end op|
|000056d0| 65 6e 74 6f 6f 6c 73 0d | 6f 6e 20 63 62 75 73 79 |entools.|on cbusy|
|000056e0| 0d 73 65 74 20 63 75 72 | 73 6f 72 20 74 6f 20 62 |.set cur|sor to b|
|000056f0| 75 73 79 0d 65 6e 64 20 | 63 62 75 73 79 0d 66 75 |usy.end |cbusy.fu|
|00005700| 6e 63 74 69 6f 6e 20 73 | 73 6e 0d 72 65 74 75 72 |nction s|sn.retur|
|00005710| 6e 20 73 68 6f 72 74 20 | 6e 61 6d 65 20 6f 66 20 |n short |name of |
|00005720| 74 68 69 73 20 73 74 61 | 63 6b 0d 65 6e 64 20 73 |this sta|ck.end s|
|00005730| 73 6e 0d 66 75 6e 63 74 | 69 6f 6e 20 6e 75 6d 4c |sn.funct|ion numL|
|00005740| 6e 73 20 74 0d 72 65 74 | 75 72 6e 20 6e 75 6d 62 |ns t.ret|urn numb|
|00005750| 65 72 20 6f 66 20 6c 69 | 6e 65 73 20 69 6e 20 74 |er of li|nes in t|
|00005760| 0d 65 6e 64 20 6e 75 6d | 4c 6e 73 0d 6f 6e 20 69 |.end num|Lns.on i|
|00005770| 73 45 42 57 20 77 0d 67 | 6c 6f 62 61 6c 20 45 42 |sEBW w.g|lobal EB|
|00005780| 57 69 6e 0d 70 75 74 20 | 66 61 6c 73 65 20 69 6e |Win.put |false in|
|00005790| 74 6f 20 62 0d 72 65 70 | 65 61 74 20 77 69 74 68 |to b.rep|eat with|
|000057a0| 20 78 3d 31 20 74 6f 20 | 6e 75 6d 4c 6e 73 28 45 | x=1 to |numLns(E|
|000057b0| 42 57 69 6e 29 0d 70 75 | 74 20 77 3d 6c 69 6e 65 |BWin).pu|t w=line|
|000057c0| 20 78 20 6f 66 20 45 42 | 57 69 6e 20 69 6e 74 6f | x of EB|Win into|
|000057d0| 20 62 0d 69 66 20 62 20 | 74 68 65 6e 20 65 78 69 | b.if b |then exi|
|000057e0| 74 20 72 65 70 65 61 74 | 0d 65 6e 64 20 72 65 70 |t repeat|.end rep|
|000057f0| 65 61 74 0d 69 66 20 6e | 6f 74 20 62 20 74 68 65 |eat.if n|ot b the|
|00005800| 6e 20 70 75 74 20 77 26 | 72 65 74 75 72 6e 20 61 |n put w&|return a|
|00005810| 66 74 65 72 20 45 42 57 | 69 6e 0d 65 6e 64 20 69 |fter EBW|in.end i|
|00005820| 73 45 42 57 0d 6f 6e 20 | 55 20 4c 0d 73 65 74 20 |sEBW.on |U L.set |
|00005830| 75 73 65 72 6c 65 76 65 | 6c 20 74 6f 20 4c 0d 65 |userleve|l to L.e|
|00005840| 6e 64 20 55 0d 6f 6e 20 | 64 6f 43 53 54 52 20 73 |nd U.on |doCSTR s|
|00005850| 0d 64 6f 20 67 65 74 53 | 74 72 28 73 29 0d 65 6e |.do getS|tr(s).en|
|00005860| 64 20 64 6f 43 53 54 52 | 0d 6f 6e 20 65 54 54 6f |d doCSTR|.on eTTo|
|00005870| 6f 6c 73 0d 73 68 75 74 | 6e 6f 74 65 73 0d 64 6f |ols.shut|notes.do|
|00005880| 43 53 54 52 20 22 65 74 | 74 43 53 54 52 22 0d 65 |CSTR "et|tCSTR".e|
|00005890| 6e 64 20 65 54 54 6f 6f | 6c 73 0d 66 75 6e 63 74 |nd eTToo|ls.funct|
|000058a0| 69 6f 6e 20 6d 79 53 65 | 6c 43 68 75 6e 6b 20 77 |ion mySe|lChunk w|
|000058b0| 0d 69 66 20 77 3d 22 22 | 20 74 68 65 6e 20 72 65 |.if w=""| then re|
|000058c0| 74 75 72 6e 20 77 0d 70 | 75 74 20 22 69 64 20 22 |turn w.p|ut "id "|
|000058d0| 26 73 68 6f 72 74 20 69 | 64 20 6f 66 20 28 77 6f |&short i|d of (wo|
|000058e0| 72 64 20 36 20 74 6f 20 | 38 20 6f 66 20 77 29 20 |rd 6 to |8 of w) |
|000058f0| 69 6e 74 6f 20 6c 61 73 | 74 20 77 6f 72 64 20 6f |into las|t word o|
|00005900| 66 20 77 0d 72 65 74 75 | 72 6e 20 77 0d 65 6e 64 |f w.retu|rn w.end|
|00005910| 20 6d 79 53 65 6c 43 68 | 75 6e 6b 0d 66 75 6e 63 | mySelCh|unk.func|
|00005920| 74 69 6f 6e 20 48 61 73 | 43 53 54 52 20 6e 0d 72 |tion Has|CSTR n.r|
|00005930| 65 74 75 72 6e 20 67 65 | 74 31 73 74 72 28 6e 29 |eturn ge|t1str(n)|
|00005940| 0d 65 6e 64 20 48 61 73 | 43 53 54 52 0d 66 75 6e |.end Has|CSTR.fun|
|00005950| 63 74 69 6f 6e 20 53 74 | 61 63 6b 49 6e 55 73 65 |ction St|ackInUse|
|00005960| 20 73 6e 0d 70 75 74 20 | 74 68 65 20 69 74 65 6d | sn.put |the item|
|00005970| 64 65 6c 69 6d 69 74 65 | 72 20 69 6e 74 6f 20 69 |delimite|r into i|
|00005980| 64 0d 70 75 74 20 74 68 | 65 20 73 74 61 63 6b 73 |d.put th|e stacks|
|00005990| 69 6e 75 73 65 20 69 6e | 74 6f 20 73 69 0d 70 75 |inuse in|to si.pu|
|000059a0| 74 20 66 61 6c 73 65 20 | 69 6e 74 6f 20 62 0d 73 |t false |into b.s|
|000059b0| 65 74 20 74 68 65 20 69 | 74 65 6d 64 65 6c 69 6d |et the i|temdelim|
|000059c0| 69 74 65 72 20 74 6f 20 | 22 3a 22 0d 72 65 70 65 |iter to |":".repe|
|000059d0| 61 74 20 77 69 74 68 20 | 78 3d 31 20 74 6f 20 74 |at with |x=1 to t|
|000059e0| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 6c 69 6e |he numbe|r of lin|
|000059f0| 65 73 20 69 6e 20 73 69 | 0d 70 75 74 20 28 73 6e |es in si|.put (sn|
|00005a00| 3d 6c 61 73 74 20 69 74 | 65 6d 20 6f 66 20 6c 69 |=last it|em of li|
|00005a10| 6e 65 20 78 20 6f 66 20 | 73 69 29 20 69 6e 74 6f |ne x of |si) into|
|00005a20| 20 62 0d 69 66 20 62 20 | 74 68 65 6e 20 65 78 69 | b.if b |then exi|
|00005a30| 74 20 72 65 70 65 61 74 | 0d 65 6e 64 20 72 65 70 |t repeat|.end rep|
|00005a40| 65 61 74 0d 73 65 74 20 | 74 68 65 20 69 74 65 6d |eat.set |the item|
|00005a50| 64 65 6c 69 6d 69 74 65 | 72 20 74 6f 20 69 64 0d |delimite|r to id.|
|00005a60| 72 65 74 75 72 6e 20 62 | 0d 65 6e 64 20 53 74 61 |return b|.end Sta|
|00005a70| 63 6b 49 6e 55 73 65 0d | 6f 6e 20 6e 65 78 74 43 |ckInUse.|on nextC|
|00005a80| 68 61 70 0d 64 6f 43 53 | 54 52 20 22 6e 65 78 74 |hap.doCS|TR "next|
|00005a90| 43 68 61 70 43 53 54 52 | 22 0d 65 6e 64 20 6e 65 |ChapCSTR|".end ne|
|00005aa0| 78 74 43 68 61 70 0d 6f | 6e 20 70 72 65 76 43 68 |xtChap.o|n prevCh|
|00005ab0| 61 70 0d 64 6f 43 53 54 | 52 20 22 70 72 65 76 43 |ap.doCST|R "prevC|
|00005ac0| 68 61 70 43 53 54 52 22 | 0d 65 6e 64 20 70 72 65 |hapCSTR"|.end pre|
|00005ad0| 76 43 68 61 70 0d 6f 6e | 20 64 6f 63 68 61 70 0d |vChap.on| dochap.|
|00005ae0| 73 68 6f 77 63 6f 6e 74 | 65 6e 74 73 0d 65 6e 64 |showcont|ents.end|
|00005af0| 20 64 6f 63 68 61 70 0d | 66 75 6e 63 74 69 6f 6e | dochap.|function|
|00005b00| 20 77 61 69 0d 67 6c 6f | 62 61 6c 20 63 68 61 70 | wai.glo|bal chap|
|00005b10| 74 65 72 73 74 61 72 74 | 0d 69 66 20 43 44 73 28 |terstart|.if CDs(|
|00005b20| 29 20 74 68 65 6e 0d 73 | 65 74 20 69 74 65 6d 64 |) then.s|et itemd|
|00005b30| 65 6c 69 6d 69 74 65 72 | 20 74 6f 20 22 2c 22 0d |elimiter| to ",".|
|00005b40| 70 75 74 20 63 68 61 70 | 74 65 72 73 74 61 72 74 |put chap|terstart|
|00005b50| 26 22 2c 22 20 69 6e 74 | 6f 20 63 73 0d 70 75 74 |&"," int|o cs.put|
|00005b60| 20 22 66 61 6c 73 65 22 | 20 69 6e 74 6f 20 66 0d | "false"| into f.|
|00005b70| 70 75 74 20 22 2c 22 26 | 43 4e 28 29 26 22 2c 22 |put ","&|CN()&","|
|00005b80| 20 69 6e 74 6f 20 54 43 | 0d 69 66 20 54 43 20 69 | into TC|.if TC i|
|00005b90| 73 20 6e 6f 74 20 69 6e | 20 63 73 20 74 68 65 6e |s not in| cs then|
|00005ba0| 0d 64 65 6c 65 74 65 20 | 6c 61 73 74 20 63 68 61 |.delete |last cha|
|00005bb0| 72 20 6f 66 20 63 73 0d | 70 75 74 20 54 43 20 61 |r of cs.|put TC a|
|00005bc0| 66 74 65 72 20 63 73 0d | 70 75 74 20 22 74 72 75 |fter cs.|put "tru|
|00005bd0| 65 22 20 69 6e 74 6f 20 | 66 0d 65 6e 64 20 69 66 |e" into |f.end if|
|00005be0| 0d 73 6f 72 74 20 69 74 | 65 6d 73 20 6f 66 20 63 |.sort it|ems of c|
|00005bf0| 73 20 6e 75 6d 65 72 69 | 63 0d 72 65 70 65 61 74 |s numeri|c.repeat|
|00005c00| 0d 69 66 20 69 74 65 6d | 20 31 20 6f 66 20 63 73 |.if item| 1 of cs|
|00005c10| 20 69 73 20 6e 6f 74 20 | 61 20 6e 75 6d 62 65 72 | is not |a number|
|00005c20| 20 74 68 65 6e 20 64 65 | 6c 65 74 65 20 69 74 65 | then de|lete ite|
|00005c30| 6d 20 31 20 6f 66 20 63 | 73 0d 65 6c 73 65 20 65 |m 1 of c|s.else e|
|00005c40| 78 69 74 20 72 65 70 65 | 61 74 0d 65 6e 64 20 72 |xit repe|at.end r|
|00005c50| 65 70 65 61 74 0d 67 65 | 74 20 6e 75 6d 62 65 72 |epeat.ge|t number|
|00005c60| 20 6f 66 20 69 74 65 6d | 73 20 69 6e 20 28 63 68 | of item|s in (ch|
|00005c70| 61 72 20 31 20 74 6f 20 | 28 6f 66 66 73 65 74 28 |ar 1 to |(offset(|
|00005c80| 54 43 2c 63 73 29 29 20 | 6f 66 20 63 73 29 0d 69 |TC,cs)) |of cs).i|
|00005c90| 66 20 66 20 74 68 65 6e | 20 67 65 74 20 69 74 2d |f f then| get it-|
|00005ca0| 31 0d 72 65 74 75 72 6e | 20 69 74 0d 65 6c 73 65 |1.return| it.else|
|00005cb0| 0d 72 65 74 75 72 6e 20 | 30 0d 65 6e 64 20 69 66 |.return |0.end if|
|00005cc0| 0d 65 6e 64 20 77 61 69 | 0d 6f 6e 20 67 6f 43 68 |.end wai|.on goCh|
|00005cd0| 61 70 74 65 72 20 77 68 | 69 63 68 0d 64 6f 20 67 |apter wh|ich.do g|
|00005ce0| 65 74 53 74 72 28 22 67 | 6f 43 68 61 70 74 65 72 |etStr("g|oChapter|
|00005cf0| 43 53 54 52 22 29 0d 65 | 6e 64 20 67 6f 43 68 61 |CSTR").e|nd goCha|
|00005d00| 70 74 65 72 0d 6f 6e 20 | 67 6f 50 61 67 65 20 77 |pter.on |goPage w|
|00005d10| 68 69 63 68 0d 64 6f 20 | 67 65 74 53 54 52 28 22 |hich.do |getSTR("|
|00005d20| 67 6f 50 61 67 65 43 53 | 54 52 22 29 0d 65 6e 64 |goPageCS|TR").end|
|00005d30| 20 67 6f 50 61 67 65 0d | 6f 6e 20 47 6f 54 6f 43 | goPage.|on GoToC|
|00005d40| 68 6f 69 63 65 0d 64 6f | 43 53 54 52 20 22 47 6f |hoice.do|CSTR "Go|
|00005d50| 54 6f 43 68 6f 69 63 65 | 43 53 54 52 22 0d 65 6e |ToChoice|CSTR".en|
|00005d60| 64 20 47 6f 54 6f 43 68 | 6f 69 63 65 0d 6f 6e 20 |d GoToCh|oice.on |
|00005d70| 73 68 66 20 77 0d 70 75 | 74 20 67 65 74 31 53 74 |shf w.pu|t get1St|
|00005d80| 72 28 22 73 68 6f 77 46 | 6f 75 6e 64 48 69 64 64 |r("showF|oundHidd|
|00005d90| 65 6e 46 69 65 6c 64 73 | 43 53 54 52 22 29 20 69 |enFields|CSTR") i|
|00005da0| 6e 74 6f 20 74 0d 64 6f | 20 74 0d 65 6e 64 20 73 |nto t.do| t.end s|
|00005db0| 68 66 0d 66 75 6e 63 74 | 69 6f 6e 20 6c 69 73 74 |hf.funct|ion list|
|00005dc0| 41 6c 6c 46 6f 6c 64 65 | 72 73 20 70 0d 70 75 74 |AllFolde|rs p.put|
|00005dd0| 20 22 22 20 69 6e 74 6f | 20 72 0d 70 75 74 20 67 | "" into| r.put g|
|00005de0| 65 74 66 69 6c 65 73 69 | 6e 64 69 72 28 70 2c 22 |etfilesi|ndir(p,"|
|00005df0| 46 6f 6c 64 65 72 22 2c | 72 65 74 75 72 6e 29 20 |Folder",|return) |
|00005e00| 69 6e 74 6f 20 6e 0d 72 | 65 70 65 61 74 20 77 69 |into n.r|epeat wi|
|00005e10| 74 68 20 78 20 3d 20 31 | 20 74 6f 20 6e 75 6d 62 |th x = 1| to numb|
|00005e20| 65 72 20 6f 66 20 6c 69 | 6e 65 73 20 69 6e 20 6e |er of li|nes in n|
|00005e30| 0d 70 75 74 20 70 26 6c | 69 6e 65 20 78 20 6f 66 |.put p&l|ine x of|
|00005e40| 20 6e 26 22 3a 22 26 72 | 65 74 75 72 6e 26 6c 69 | n&":"&r|eturn&li|
|00005e50| 73 74 41 6c 6c 46 6f 6c | 64 65 72 73 28 70 26 6c |stAllFol|ders(p&l|
|00005e60| 69 6e 65 20 78 20 6f 66 | 20 6e 26 22 3a 22 29 20 |ine x of| n&":") |
|00005e70| 61 66 74 65 72 20 72 0d | 65 6e 64 20 72 65 70 65 |after r.|end repe|
|00005e80| 61 74 0d 72 65 74 75 72 | 6e 20 72 0d 65 6e 64 20 |at.retur|n r.end |
|00005e90| 6c 69 73 74 41 6c 6c 46 | 6f 6c 64 65 72 73 0d 66 |listAllF|olders.f|
|00005ea0| 75 6e 63 74 69 6f 6e 20 | 52 65 73 6f 6c 76 65 46 |unction |ResolveF|
|00005eb0| 69 6c 65 50 61 74 68 20 | 6e 0d 67 6c 6f 62 61 6c |ilePath |n.global|
|00005ec0| 20 67 4c 6f 6f 6b 49 6e | 42 6f 6f 6b 46 6f 6c 64 | gLookIn|BookFold|
|00005ed0| 65 72 2c 67 52 65 73 6f | 75 72 63 65 46 6f 6c 64 |er,gReso|urceFold|
|00005ee0| 65 72 4e 61 6d 65 2c 67 | 52 65 73 6f 75 72 63 65 |erName,g|Resource|
|00005ef0| 50 61 74 68 73 0d 70 75 | 74 20 6e 20 69 6e 74 6f |Paths.pu|t n into|
|00005f00| 20 6d 70 0d 72 65 70 65 | 61 74 20 77 69 74 68 20 | mp.repe|at with |
|00005f10| 78 3d 31 20 74 6f 20 6e | 75 6d 62 65 72 20 6f 66 |x=1 to n|umber of|
|00005f20| 20 6c 69 6e 65 73 20 69 | 6e 20 67 52 65 73 6f 75 | lines i|n gResou|
|00005f30| 72 63 65 50 61 74 68 73 | 0d 70 75 74 20 6c 69 6e |rcePaths|.put lin|
|00005f40| 65 20 78 20 6f 66 20 67 | 52 65 73 6f 75 72 63 65 |e x of g|Resource|
|00005f50| 50 61 74 68 73 20 69 6e | 74 6f 20 74 70 0d 69 66 |Paths in|to tp.if|
|00005f60| 20 74 68 65 72 65 20 69 | 73 20 61 20 66 69 6c 65 | there i|s a file|
|00005f70| 20 28 74 70 26 6e 29 20 | 74 68 65 6e 0d 70 75 74 | (tp&n) |then.put|
|00005f80| 20 74 70 26 6e 20 69 6e | 74 6f 20 6d 70 0d 65 78 | tp&n in|to mp.ex|
|00005f90| 69 74 20 72 65 70 65 61 | 74 0d 65 6e 64 20 69 66 |it repea|t.end if|
|00005fa0| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 72 65 74 75 |.end rep|eat.retu|
|00005fb0| 72 6e 20 6d 70 0d 65 6e | 64 20 52 65 73 6f 6c 76 |rn mp.en|d Resolv|
|00005fc0| 65 46 69 6c 65 50 61 74 | 68 0d 66 75 6e 63 74 69 |eFilePat|h.functi|
|00005fd0| 6f 6e 20 43 4e 0d 67 6c | 6f 62 61 6c 20 54 43 54 |on CN.gl|obal TCT|
|00005fe0| 0d 72 65 74 75 72 6e 20 | 52 43 4e 28 29 2d 74 63 |.return |RCN()-tc|
|00005ff0| 74 0d 65 6e 64 20 43 4e | 0d 66 75 6e 63 74 69 6f |t.end CN|.functio|
|00006000| 6e 20 52 43 4e 0d 72 65 | 74 75 72 6e 20 6e 75 6d |n RCN.re|turn num|
|00006010| 62 65 72 20 6f 66 20 74 | 68 69 73 20 63 64 0d 65 |ber of t|his cd.e|
|00006020| 6e 64 20 52 43 4e 0d 6f | 6e 20 63 6c 6f 73 65 62 |nd RCN.o|n closeb|
|00006030| 61 63 6b 67 72 6f 75 6e | 64 0d 6c 73 0d 64 6f 43 |ackgroun|d.ls.doC|
|00006040| 53 54 52 20 22 55 44 42 | 6f 6f 6b 4d 61 72 6b 43 |STR "UDB|ookMarkC|
|00006050| 53 54 52 22 0d 70 61 73 | 73 20 63 6c 6f 73 65 62 |STR".pas|s closeb|
|00006060| 61 63 6b 67 72 6f 75 6e | 64 0d 65 6e 64 20 63 6c |ackgroun|d.end cl|
|00006070| 6f 73 65 62 61 63 6b 67 | 72 6f 75 6e 64 0d 6f 6e |osebackg|round.on|
|00006080| 20 64 6f 4e 65 77 4e 6f | 74 65 62 6f 6f 6b 0d 64 | doNewNo|tebook.d|
|00006090| 6f 43 53 54 52 20 22 64 | 6f 4e 65 77 4e 6f 74 65 |oCSTR "d|oNewNote|
|000060a0| 42 6f 6f 6b 43 53 54 52 | 22 0d 65 6e 64 20 64 6f |BookCSTR|".end do|
|000060b0| 4e 65 77 4e 6f 74 65 62 | 6f 6f 6b 0d 6f 6e 20 6d |NewNoteb|ook.on m|
|000060c0| 61 72 6b 62 6c 61 63 6b | 0d 64 6f 43 53 54 52 20 |arkblack|.doCSTR |
|000060d0| 22 6d 61 72 6b 42 6c 61 | 63 6b 43 53 54 52 22 0d |"markBla|ckCSTR".|
|000060e0| 65 6e 64 20 6d 61 72 6b | 62 6c 61 63 6b 0d 6f 6e |end mark|black.on|
|000060f0| 20 6d 6f 76 65 77 69 6e | 64 6f 77 0d 64 6f 43 53 | movewin|dow.doCS|
|00006100| 54 52 20 22 6d 6f 76 65 | 57 69 6e 64 6f 77 43 53 |TR "move|WindowCS|
|00006110| 54 52 22 0d 65 6e 64 20 | 6d 6f 76 65 77 69 6e 64 |TR".end |movewind|
|00006120| 6f 77 0d 6f 6e 20 45 42 | 68 65 6c 70 0d 64 6f 43 |ow.on EB|help.doC|
|00006130| 53 54 52 20 22 68 65 6c | 70 52 65 7a 43 53 54 52 |STR "hel|pRezCSTR|
|00006140| 22 0d 65 6e 64 20 45 42 | 68 65 6c 70 0d 6f 6e 20 |".end EB|help.on |
|00006150| 48 57 43 6c 69 63 6b 20 | 63 68 2c 6c 6e 2c 77 6e |HWClick |ch,ln,wn|
|00006160| 0d 64 6f 20 67 65 74 53 | 54 52 28 22 48 57 43 6c |.do getS|TR("HWCl|
|00006170| 69 63 6b 43 53 54 52 22 | 29 0d 65 6e 64 20 48 57 |ickCSTR"|).end HW|
|00006180| 43 6c 69 63 6b 0d 6f 6e | 20 6c 6f 4d 65 6d 20 61 |Click.on| loMem a|
|00006190| 0d 61 6e 73 77 65 72 20 | 74 53 74 72 28 22 4c 69 |.answer |tStr("Li|
|000061a0| 62 4d 73 67 22 2c 31 34 | 29 26 26 71 75 6f 74 65 |bMsg",14|)&&quote|
|000061b0| 26 61 26 71 75 6f 74 65 | 0d 65 6e 64 20 6c 6f 4d |&a&quote|.end loM|
|000061c0| 65 6d 0d 6f 6e 20 6e 65 | 78 74 66 69 6e 64 0d 61 |em.on ne|xtfind.a|
|000061d0| 66 69 6e 64 20 6e 65 78 | 74 0d 65 6e 64 20 6e 65 |find nex|t.end ne|
|000061e0| 78 74 66 69 6e 64 0d 6f | 6e 20 70 72 65 76 66 69 |xtfind.o|n prevfi|
|000061f0| 6e 64 0d 61 66 69 6e 64 | 20 70 72 65 76 0d 65 6e |nd.afind| prev.en|
|00006200| 64 20 70 72 65 76 66 69 | 6e 64 0d 6f 6e 20 6e 65 |d prevfi|nd.on ne|
|00006210| 78 74 6d 61 72 6b 0d 64 | 6f 43 53 54 52 20 22 6e |xtmark.d|oCSTR "n|
|00006220| 65 78 74 4d 61 72 6b 43 | 53 54 52 22 0d 65 6e 64 |extMarkC|STR".end|
|00006230| 20 6e 65 78 74 6d 61 72 | 6b 0d 6f 6e 20 70 72 65 | nextmar|k.on pre|
|00006240| 76 6d 61 72 6b 0d 64 6f | 43 53 54 52 20 22 70 72 |vmark.do|CSTR "pr|
|00006250| 65 76 4d 61 72 6b 43 53 | 54 52 22 0d 65 6e 64 20 |evMarkCS|TR".end |
|00006260| 70 72 65 76 6d 61 72 6b | 0d 6f 6e 20 46 74 65 78 |prevmark|.on Ftex|
|00006270| 74 73 69 7a 65 0d 64 6f | 43 53 54 52 20 22 46 74 |tsize.do|CSTR "Ft|
|00006280| 65 78 74 73 69 7a 65 43 | 53 54 52 22 0d 65 6e 64 |extsizeC|STR".end|
|00006290| 20 46 74 65 78 74 73 69 | 7a 65 0d 6f 6e 20 46 74 | Ftextsi|ze.on Ft|
|000062a0| 6f 6f 6c 73 0d 64 6f 43 | 53 54 52 20 22 46 54 6f |ools.doC|STR "FTo|
|000062b0| 6f 6c 73 43 53 54 52 22 | 0d 65 6e 64 20 46 74 6f |olsCSTR"|.end Fto|
|000062c0| 6f 6c 73 0d 6f 6e 20 46 | 6d 62 61 72 0d 67 6c 6f |ols.on F|mbar.glo|
|000062d0| 62 61 6c 20 6d 53 54 2c | 6d 53 0d 70 75 74 20 46 |bal mST,|mS.put F|
|000062e0| 69 74 28 74 53 74 72 28 | 22 4c 69 62 4d 73 67 22 |it(tStr(|"LibMsg"|
|000062f0| 2c 34 32 29 29 20 69 6e | 74 6f 20 6d 53 54 0d 69 |,42)) in|to mST.i|
|00006300| 66 20 6d 53 54 20 74 68 | 65 6e 0d 73 68 6f 77 20 |f mST th|en.show |
|00006310| 6d 65 6e 75 62 61 72 0d | 70 75 74 20 74 72 75 65 |menubar.|put true|
|00006320| 20 69 6e 74 6f 20 6d 53 | 0d 65 6c 73 65 0d 68 69 | into mS|.else.hi|
|00006330| 64 65 20 6d 65 6e 75 62 | 61 72 0d 70 75 74 20 66 |de menub|ar.put f|
|00006340| 61 6c 73 65 20 69 6e 74 | 6f 20 6d 53 0d 65 6e 64 |alse int|o mS.end|
|00006350| 20 69 66 0d 65 6e 64 20 | 46 6d 62 61 72 0d 66 75 | if.end |Fmbar.fu|
|00006360| 6e 63 74 69 6f 6e 20 52 | 42 0d 67 6c 6f 62 61 6c |nction R|B.global|
|00006370| 20 42 4e 61 6d 65 0d 72 | 65 74 75 72 6e 20 73 73 | BName.r|eturn ss|
|00006380| 6e 28 29 3d 42 4e 61 6d | 65 0d 65 6e 64 20 52 42 |n()=BNam|e.end RB|
|00006390| 0d 6f 6e 20 73 68 75 74 | 6e 6f 74 65 73 0d 67 65 |.on shut|notes.ge|
|000063a0| 74 20 74 53 74 72 28 22 | 4c 69 62 4d 73 67 22 2c |t tStr("|LibMsg",|
|000063b0| 34 37 29 0d 69 66 20 74 | 68 65 72 65 20 69 73 20 |47).if t|here is |
|000063c0| 61 20 77 69 6e 64 6f 77 | 20 69 74 20 74 68 65 6e |a window| it then|
|000063d0| 20 63 6c 6f 73 65 20 77 | 69 6e 64 6f 77 20 69 74 | close w|indow it|
|000063e0| 0d 65 6e 64 20 73 68 75 | 74 6e 6f 74 65 73 0d 6f |.end shu|tnotes.o|
|000063f0| 6e 20 6c 61 73 74 67 73 | 70 0d 67 6c 6f 62 61 6c |n lastgs|p.global|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.